What is the difference between ‘git pull’ and ‘git fetch’?
< 1 min read git pull and git fetch are both commands that are used to download new commits and data from a remote repository. However, they differ …
< 1 min read git pull and git fetch are both commands that are used to download new commits and data from a remote repository. However, they differ …
< 1 min read To delete a Git branch locally, you can use the git branch command with the -d option, followed by the name of the branch …
< 1 min read If you want to rename a local branch even if you have already pushed it to remote, follow the following steps. Rename your local …
< 1 min read There are certain situations when you unknowingly add files to git and you try to remove those files later on by adding the names …
< 1 min read There may be certain situations when you do the changes and merge the working branch on the master branch. Later on, you realize that …
< 1 min read Sometimes we may not notice that the local branches are increasing and manually deleting branches one by one can take much time. You can …
< 1 min read To exclude a sub-folder inside a folder in .gitignore, the following can be done. app/* !app/subfolder/ app/subfolder/* !app/subfolder/subfolder2/ This will ignore all files …