Skip to content

chendaniely/2021-05-26-git_collab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alskdjlkasdf

2021/05/26 Git Collaboration

  • git clone <URL>: downloads the repo to current directory

Branches

  • git branch <NAME>: create branch
  • git branch -a: list all branches
  • git branch -d <NAME>: delete
    • git branch -D <NAME>: force delete
  • git switch <NAME>: switch to
    • git checkout <NAME>: "older" way to switch branches
  • git switch -c <NAME>: create and switch to branch 1 command
    • git checkout -b <NAME> same using checkout

Pull Requests

  • Also see branch delete above
  • git log --oneline --graph --all: show you git history
  • git fetch --prune: clean up your git history

Conflicts

You won't know it's going to happen until it does.

  • git rebase <BRANCH>: e.g., will update current branch

Some additional notes and links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published