Git also tracks the permissions (chmod) of the files. If you have changed the file permissions, git will show you as modified files. Mostly the Linux users face this issue while securing their application by changing file permissions. You can configure your git to ignore file permissions changes using the following command. git config...
This tutorial will help you to clone a specific git branch from the remote git repository via command line. Syntax: You need to specify the branch name with -b command switch. Here is the syntax of the command to clone the specific git branch. git clone -b <BRANCH_NAME> <GIT_REMOTE_URL> Example: The following command will...
This tutorial will help you to rename a local git repository branch. Also, you can apply the same changes on the remote git repository. Rename Local Git Branch You can use -m option to rename a git branch. To rename the currently active branch just execute the following command with a new branch name....
Git client added an identity to each commit. For this Git uses an username and email address to associate with the commit. This name and email change will apply for future commits only. Setup git username for a single repository Open Terminal and use the following commands to set Git username and email address...
This tutorial will help you to delete commit history from your local git repository and remote git repository hosted on Github, Gitlab, Bitbucket or any other git hosting. In this repository, you will remove the local master branch and create a new master branch. Finally, push changes to the remote git repository. Delete Commit...
This tutorial will help you to list remote branches available on the remote git repository. It is helpful you to find names of branches, which have been created on the remote repository by someone and you want to check out this on your local repository. Method 1: Fetch Remote Tracking Branches Firstly run git...
This tutorial will help you to check out a remote git branch that is not available on the local git repository. Use command git branch to list local branches available. Git Checkout Remote Branch Now use command git branch -a to list all available branches on local and remote git repository. After that run...
Git version 2.23 is available under git official PPA. It is a free and open-source distributed version control system . Git 2.23 comes with a large number of updates versus the previous release. It is designed to handle small to very large projects with speed and efficiency. To know more about Git 2.23 read...
Git has released 2.23 version on Aug 12, 2019. Git is a free and open-source distributed version control system. It is designed to handle small to very large projects with speed and efficiency. To read more details and changes about Git 2.23 read release notes. If you are using a Git repository for your...
Using Git pull, we download latest changes from Git remote repository to local repository code. During this process, we faced issues many times due to local changes. Then we need to force overwrite any local changes and update all files from remote repository. Important :- All the local changes will be lost. Any local...