Most Useful Git commands – User friendly Tech help

n

I have decided to stick with love. Hate is too great a burden to bear.

n

n

    n

  1. List all the branches : git branch
  2. n

  3. Pull the recent changes: git pull
  4. n

  5. Create a feature branch : git checkout -b
  6. n

  7. Delete branch local: git branch -d or git branch -D
  8. n

  9. Delete branch from remote : git push origin –delete
  10. n

  11. See all remote branches: git branch -v -a
  12. n

  13. Get conflicted list of files: git diff –name-only –diff-filter=U
  14. n

  15. git fetch origin (checkout new remote branch)n
      n

    1. git checkout -t origin/remote-branch
    2. n

    n

  16. n

  17. List all remote branches: git branch -r ()
  18. n

Was this article helpful?
YesNo

Similar Posts