How to create user gitignore

Issue #967 Git is a helpful tool for managing code and projects, but sometimes you want to ignore certain files or folders only on your computer without affecting everyone else. That鈥檚 where the .user_gitignore file comes in. It allows you to create personalized ignore rules for your local Git setup without changing the global project settings. gitignore Before we get into .user_gitignore, let鈥檚 quickly go over what a regular .gitignore file does....

January 30, 2024 路 2 min 路 Khoa Pham

How to work with git

Issue #531 Expand commits in Sublime Merge { "expand_merge_commits_by_default": true, "translate_tabs_to_spaces": true } local hooks .git/hooks vs hooksPath git config core.hooksPath ~/.git-templates/hooks Only hooksPath gets run. Removing hooksPath make local hooks work Use git templates Define alias in zshrc vim ~/.zshrc alias check="~/.git-templates/hooks/" source ~/.zshrc pre-commit (feature|fix|refactor)\/[a-z0-9-]+$

December 9, 2019 路 1 min 路 Khoa Pham

How to setup multiple git accounts for GitHub and Bitbucket

Issue #514 Generate SSH keys ssh-keygen -t rsa -C "" -f "id_rsa_github" ssh-keygen -t rsa -C "" -f "id_rsa_bitbucket" pbcopy < ~/.ssh/ pbcopy < ~/.ssh/ ssh-add -D ssh-add id_rsa_github ssh-add id_rsa_bitbucket vim ~/.ssh/config #Github (personal) Host gh HostName User git IdentityFile ~/.ssh/id_rsa_github #Bitbucket (work) Host bb HostName User git IdentityFile ~/.ssh/id_rsa_bitbucket Config git config --global "" git config --local "" Read more Updated at 2020-10-04 06:52:07

November 22, 2019 路 1 min 路 Khoa Pham

Useful git commands for everyday use!

Issue #239 Do you know that questions about git get the most views on StackOverflow? I鈥檝e searched a lot on Google how to execute certain actions with git, and this actually slowed me down a lot. There are some actions that we tend to use a lot, so it鈥檚 good to learn them. Here are my favorites, learning from friends and internet, hope you find them useful. Before we begin, you should run git 鈥搗ersion to check your current git version, mine is 2....

May 15, 2019 路 7 min 路 Khoa Pham