Git Important Commands - Version Control System Important Commands

how to undo last Committed files in git 

git reset HEAD~ 

How to Chnage HTTP to SSH

  • Change: https://github.com/WEMP/repo.git
  • to: https://*username*@github.com/WEMP/repo.git
  • You can also do git remote set-url origin git@github.com:user/repo.git

How to remove local untracked files from the current Git branch
git clean -f (removed all migrations fiels)
git clean -fd (removed all directories)




Comments

Popular posts from this blog

How to Connect Firebase Using Pyrebase In Python

How to get Full URL or get absolute url In Django

How To Convert Html File/URL/String Into Image Using Python