reference icon indicating copy to clipboard operation
reference copied to clipboard

Cheatsheet request: Github commands

Open loveneetchahal opened this issue 1 year ago • 0 comments

Git commands:

  1. Master branch => git pull 'Url'// Any other branch => git pull origin branch_name
  2. Create branch => git checkout -b branch-name
  3. Delete branch => git branch -d branchname
  4. Check changes => git status
  5. Add all the changed files => git add .
  6. Commit => git commit -m "message to be"
  7. Push => git push origin "branch_name" or git push origin HEAD

loveneetchahal avatar Mar 04 '24 09:03 loveneetchahal