201 likes
·
19.5K reads
31 comments
Insightful blog Bushra, get to know lots of tricks & tips✌️.
Glad it helped Aditya 👋😄
A well written blog, Bushra!👏
Thanks Pavan 🙌😄
Amazing blog Bushra! 😃👏
Thanks a lot Bhavya 🤩🙌
That's the best blog I've read on git.
So much info presented in a much interesting way.
Amazing one Bushra
Thanks for the appreciation Srinivas 🙌😄
Awesome blog!
Thanks Barkatul ✌️😄
Nicely Explained
Thank you so much Anurag 🙌🤩
Greatly written blog 🙌
Thanks a ton Vaidansh 🙌😄
Well written👌 and learnt a quite new things ✅🙌
Thanks Lavakush 🙌🤩 Glad it helped ✨
Great Blog, Bushra. You put awesome effort into it 👏👏.
Thank you so much Pradumna for your valuable feedback 😍🙏 It means a lot 🙌
❤️ Thanks for the tips :) Nice ! 👍
Glad it helped Hyerim😇🙌
Great content BUSHRA NAZISH. I can't count how many Grandma's house scenarios I've had and felt useless without my PC. 😂 Wish I knew about this shortcut earlier.
Thank you so much Victor👍 I'm glad you found it useful 🙌 😅
Great work, putting it all together. What is the difference between git fetch and git pull?
Thanks Jitendra :)
A great question. Well! As far as I know,
- Git Pull downloads the content from the remote repository and also merges the new commits into our working branch
- Whereas, Git Fetch just copies content from the remote into the local repository.
So, Git Fetch can be considered as a harmless option as our working branch is not altered and our uncommitted work is secure.
Here's a helpful blog on it: freecodecamp.org/news/git-fetch-vs-pull
I would like to add few Git alias hecks from my day to day productivity boosting tricks playbook: (on Mac)
vi ~/.gitconfig
[alias]
s = status
del = branch -D
co = checkout
cob = checkout -b
st = stash list
stp = stash pop
se = !git rev-list --all | xargs git grep -F
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
Also, if you are frequently switching personal and work projects. You may have to maintain multiple git configs Here is the git config heck assuming all your work related projects are saved in /Documents/work/ folder and personal fun projects saved under /Documents/personal/ folder:
[includeIf "gitdir:~/Documents/work/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/Documents/personal/"]
path = ~/.gitconfig-personal
Thanks a lot for adding Kallol🙌🤩
Just wow!
Thanks Naman 🌸
That's a really amazing article there, just the way it was written and how things were explained.
I'm glad you liked it 🙏 Grateful for your kind words 🙌😄
git commit -am "An easy way!"
not working with me. is anything need to setup ? pls advice