Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GIT BASICS LOCAL & REMOTE MODIFICATIONS
- git init create empty repo git stash save modified + staged changes
- git clone <repo> clone existing repo git rebase <branch> combine last commit + staged
- git add . stage all changes changes
- git commit -m “<msg>" commit changes with msg git reset --hard <commit> clear staging area, rewrite
- git status list staged/unchanged/untracked working tree
- git log display commit history SHARE & UPDATE
- git diff show unstaged changes git remote add <alias> <url> add git URL as alias
- git reset <file> remove file from staging git fetch <alias> fetch all remote branches
- git merge <alias>/<branch> merge remote into current branch
- GIT BRANCHES git push <alias> <branch> push local commits to remote repo
- git branch list branches git pull fetch + merge remote commits
- git branch <branch> create new branch
- git checkout <branch> checkout existing branch
- git merge <branch> merge branch into current branch
Advertisement
Add Comment
Please, Sign In to add comment