Taking along countless memories and friends for life. It's never easy to say goodbye after such a long period. #git #github #opensource #softwaredevelopment #coding #fresher #javascriptįinally, I have moved on in Life, I have parted ways with ReNew after an illustrious association of almost 11 years. One can wipe out all changes on your local branch to exactly what is in the remote branch.įollow Ansh Mishra for more such Technical Content. This command will delete all the tracking information for branches that are on your local machine that are not in the remote repository, but it does not delete your local branches.įor finding which commits caused certain bugs This command will stash (store them locally) all your code changes but does not actually commit them. One can also use the log command to search for specific changes in the code.Įg: git log -S "A promise in JavaScript is very similar" Gives you the ability to print out a pretty log of your commits/branches. This command lets you easily see the recent commits, pulls, resets, pushes, etc on your local machine. The revert command simply allows us to undo any commit on the current branch.Īnother way: git revert HEAD (for recent commits) (alias called ac, git add -A & git commit -m will do the full add and commit) With aliases, you can write your own Git commands that do anything you want.Įg: git config -global alias.ac '!git add -A & git commit -m'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |