Skip to content

Instantly share code, notes, and snippets.

@xyzkpz
Last active November 29, 2020 12:28
Show Gist options
  • Save xyzkpz/c2ecb73c754f3b555503da8ce15ab93e to your computer and use it in GitHub Desktop.
Save xyzkpz/c2ecb73c754f3b555503da8ce15ab93e to your computer and use it in GitHub Desktop.
all about github and use
// create git
git init .
// add to staging area
git add .
// commit final changes
git commit -am "final commit"
//check current status
git status
// create branch
git git checkout -b give-a-name
// check current branch
git branch --show-current
// switch branch
git checkout master
// check all branches
git branch -a
// delete branch
git branch -d notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment