image2text

Untitled

Jul 31st, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. GIT BASICS LOCAL & REMOTE MODIFICATIONS
  2. git init create empty repo git stash save modified + staged changes
  3. git clone <repo> clone existing repo git rebase <branch> combine last commit + staged
  4. git add . stage all changes changes
  5. git commit -m “<msg>" commit changes with msg git reset --hard <commit> clear staging area, rewrite
  6. git status list staged/unchanged/untracked working tree
  7. git log display commit history SHARE & UPDATE
  8. git diff show unstaged changes git remote add <alias> <url> add git URL as alias
  9. git reset <file> remove file from staging git fetch <alias> fetch all remote branches
  10.  
  11. git merge <alias>/<branch> merge remote into current branch
  12. GIT BRANCHES git push <alias> <branch> push local commits to remote repo
  13. git branch list branches git pull fetch + merge remote commits
  14. git branch <branch> create new branch
  15. git checkout <branch> checkout existing branch
  16. git merge <branch> merge branch into current branch
Advertisement
Add Comment
Please, Sign In to add comment