Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 492 Bytes

git.md

File metadata and controls

19 lines (10 loc) · 492 Bytes

git

git init -- starts the git process

git status -- show current git status

git add (git add .)-- stages files to commit

git commit (git commit -m "message")

git remote add origin -- origin is a alais for the the url or git link

git push -u origin master -- -u sets the upstream so you only need to run git push next time

git branch -- lists branches

git branch (branch name) -- make a branch in that name idk

git checkout -b (branch name) -- makes new branch and switches to it