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

ERR: error parsing query: found influx, expected SELECT, DELETE, SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line

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

How to get Full URL or get absolute url In Django