- bash (2)
- blockchain (8)
- c (3)
- cli (2)
- css (1)
- electron (3)
- freelancer (2)
- gatsby (3)
- git (15)
- gulp (1)
- idm (1)
- javascript (23)
- jest (1)
- mdx (1)
- nodejs (5)
- npm (2)
- react (2)
- shorts (5)
- sql (1)
- typescript (3)
- vue (1)
- vuetify (2)
- web (1)
- windows (4)
- zeit (1)
15 posts on git
- Creating a global gitignore file
I have been watching a tutorial lately, and was suprised how the instructor managed to exclude node_modules folder without any .gitignore…
- Git status show folders only, hide files in the log
Today I have discovered a new flag --short , that can be used in git status command. This will hide the files in the subfolders getting…
- Compare two git commits using GIT CLI
Compare two commits in the CLI The following command lets you see the changes in between two commits. The commits are identified using…
- GIT - Creating new branch using GIT CLI
Creating a new branch If you want to just create a new branch (out of current branch), run the following command: The above command will…
- GIT - Add modified/new files to staging in GIT CLI
Adding a file To add new file to the GIT staging area, run the following command with your desired filename along with the extension. Adding…
- Git Clone - Complete guide to cloning repositories with Git CLI
Cloning a remote repository To clone a repository into your PC, you need to have the URL of the repository that needs to be cloned. Then…
- GIT - How to add a new remote using GIT CLI
To add a new remote to your existing repo, use the following command You can verify the remotes using the command:
- Git Commit - Complete Guide to committing your files in GIT CLI
Committing the staged files in your repo To commit all the staged fields, you can use the following command by adding a commit_message…
- GIT - Adding alias to a GIT command
If you want to add an alias for a git command, use the following command: Example usage of the above command will be like git config…
- Git Tags - Complete guide to use tags with GIT CLI
Annotated tag To add an annotated tag, use the command: For e.g., you can do git tag -a v1.0.0 -m "initial release - mvp" To add an…
- How to setup bash auto completion(GIT & NPM) on Windows
Open Git bash. I assume that you have VS Code installed on your PC. Run the following commands: And fill the files with the following…
- Manage multiple GitHub accounts using SSH keys
In this post I will walk you through my setup how I manage multiple GitHub accounts with SSH keys. You can replicate the process for…
- Use GitHub with SSH - Complete guide including VSCode setup
If you want to use Git without using password, then SSH key is the solution. Using SSH key is highly recommended and followed by…
- Using LF instead of CRLF on Windows
Have you ever worked on a team where people use other OS along with windows(with Git as version-control system). In such case tesing or…
- Push a tag to git repo using CLI
Adding a tag To add a tag to a git repository, run the following command: Adding a tag with a message attached to it If you want to add a…