ðð ððŪðŽð-ðð§ðĻð° ððĒð ððĻðĶðĶðð§ððŽ ððĄðð ððŦð ðĪð§ðĻð°ð§ ððē ððð°ððŦ ðĐððĻðĐðĨð (newbie). ð. ððð/ððĻðĶðĶðĒð ððĨðĨ Standard way: git add . git commit -m "Message" Another way: git commit -a -m "Message" ð. ððĨðĒððŽððŽ With aliases, you can write your own Git commands that do anything you want. Eg: git config --global alias.ac '!git add -A && git commit -m' (alias called ac, git add -A && git commit -m will do the full add and commit) ð. ðððŊððŦð The revert command simply allows us to undo any commit on the current branch. Eg: git revert 486bdb2 Another way: git revert HEAD (for recent commits) ð. ððððĨðĻð This command lets you easily see the recent commits, pulls, resets, pushes, etc on your local machine. Eg: git reflog ð. ððŦððððē ððĻð ðŽ Gives you the ability to print out a pretty log of your commits/branches. Eg: git log --graph --decorate --oneline ð. ððððŦððĄðĒð§ð ððĻð ðŽ One can also use the log command to search for specific changes in the code. Eg: git log -S "A promise in JavaScript is very similar" ð. ððððŽðĄ This command will stash (store them locally) all your code changes but does not actually commit them. Eg: git stash ð. ðððĶðĻðŊð ðððð ððŦðð§ððĄððŽ 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. Eg: git remote update --prune ð. ððĒðŽððð For finding which commits caused certain bugs Eg: git bisect start git bisect bad git bisect good 48c86d6 ðð. ðððŽððŦðĻðē ððĻðððĨ ððĄðð§ð ððŽ One can wipe out all changes on your local branch to exactly what is in the remote branch. Eg: git reset --hard origin/main ð Follow @rehman_coding for more daily web development tips and tricks. #content #webdev #coding #css #webdevelopment #comment #contentcreation #devcontent #frontend #frontenddevelopment #HTML #Javascript #react #codewithcoffee #grid #codewithcoffeeindia #future #share #connections #like #css3 #csstip #html #htmltip #csslayout #cssgrid #grid #cssgrid #gridlayout #terminology Ruby, etc. (at I-8 Markaz Islamabad) https://www.instagram.com/p/Coo4IHtg9Wc/?igshid=NGJjMDIxMWI=










