- If you don't have one, create a GitHub account I'd recommend using your personal email, but you can use any ever email
- Fork this repository, but clicking Fork in the upper right hand corner
- Go to settings in your new repository
- Change the name to match your username.
- Visit your new website at http://[Insert you username].github.io if you load a website then it worked!
- First you'll need to clone your repository to your Desktop directory, to do this we'll use the command line.
- Open up an app on your computer called Terminal
- Type
cd Desktop
and press enter - Type
git clone https://github.com/[Insert your username]/[Insert your username].github.io.git
and press enter - Type
ls
and press enter and you should see a[Insert your username].github.io
in the list of outputted text. Also you can test this by looking at your compuers desktop you should see a folder with the same name
cd ~/Desktop/[Insert you username].github.io
git add .
git commit -m "Insert your message"
git push
If your forget to add -m "Insert your message"
you'll get put into a program called VIM. In order to leave VIM, type :q
and press enter.
- Commit all your local changes by following the instruction in Saving changes to GitHub above
git remote add upstream https://github.com/jamieyu96/jamieyu96.github.io.git
git fetch upstream
git merge upstream/master
To merge remote changes you'll first need to add a remote branch. See the instruction above
git fetch upstream
git merge upstream/master
All git commands must be done from inside of your project folder
git add .
- Adds current changes to git.git commit -m "instert your own message her"
- Makes a new git commit .git push
- Pushes your commit to GitHubgit pull
- Pulls changes from GitHub to your projectgit status
- Prints out the current status of your git project
You're now in a program called VIM Do not panic. Simply type :q
and
press enter.
cd <folder>
- Stands for "change directory" lets you change what folder your in (directory is a synonym for folder).cd
- cd without an argument takes you to your home folder.ls
- List the contents of your current folder.pwd
- Prints out the full file path that you're currently in.