Whenever you're confused about git, come read this cheat sheet. Remember that all git commands can be run with the --help
option. For example:
$ git branch --help
or $git log --help
####Create a new git repository
$ git init
- Create a new, local repository
$ git status
- Check the status of your current repository and see which files have changed.
$ git diff
- Fill Me Out
$ git log
- Fill Me Out
$ git log --oneline --decorate --color --graph --all
- Fill Me Out
$ git log -p [filename]
Fill Me Out
$ git add <filename>
- Fill Me Out
$ git add -A
- Fill Me Out
$ git commit -m "<commit message>"
- Fill Me Out
$ git branch <branch name>
- Fill Me Out
$ git branch
- Fill Me Out
$ git checkout <branch name>
- Fill Me Out
$ git merge <branch name>
- Fill Me Out