*If you are interested have a look at my .dotfiles
, found here: https://github.com/roachhd/dotfiles *
–
Getting & Creating Projects
Command |
Description |
git init |
Initialize a local Git repository |
git clone ssh://git@github.com/[username]/[repository-name].git |
Create a local copy of a remote repository |
Basic Snapshotting
Command |
Description |
git status |
Check status |
git add [file-name.txt] |
Add a file to the staging area |
git add -A |
Add all new and changed files to the staging area |
git commit -m "[commit message]" |
Commit changes |
git rm -r [file-name.txt] |
Remove a file (or folder) |
Branching & Merging
Command |
Description |
git branch |
List branches (the asterisk denotes the current branch) |
git branch -a |
List all branches (local and remote) |
git branch [branch name] |
Cre |