Skip to content

ansergeyg/my_notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Everyday git commands

Remove files from Changes to be committed:

git restore filename --staged

Remove files from Changes not staged for commit:

git checkout filename

Remove files from Untracked files:

git clean -f filename or leave empty to delete all untracked files

Change latest pushed commit:

  1. git reset sha1 or label (choose before our latest commit). This command doesn't remove any local changes you had done before pushing to remote.

  2. Do your changes (probably using steps above)

  3. git commit -m "Your comment"

  4. git push -f origin your branch

About

Everything about everything

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published