![]() This problem has been described in this part of the tutorial by using a local repository named python published before in the remote server. All the uncommitted and committed local changes that are not pushed will be deleted for the –hard option. After executing the fetch command, if the `git reset` command is executed with the –hard option, then all the matching files and folders of the local repository will be overwritten by the content of the remote repository. The `git fetch –all` command downloads all content of the remote repository into the local repository but doesn’t merge the content with the local repository. Overwrite local changes for forcing git pull: You have to create a local repository and publish the repository in the remote server to test the commands used in this tutorial. You will require to create a GitHub account to check the commands used in this tutorial. You can also check the tutorial for installing GitHub Desktop on Ubuntu to know the installation process properly. You have to install and configure this application after download to use it. ![]() You can easily download the latest installer of this application for Ubuntu from. ![]() GitHub Desktop helps the git user to perform the git-related tasks graphically. The way to use git force pull by `git fetch` and `git reset` commands have shown in this tutorial. `git pull` command is not able to solve this problem. The user has to git force pull for overwriting the changes in the local repository without affecting the changes done in the local repository that are not pushed. Suppose, when the two users are working on the same file of a repository, and if one user modifies the file after the modification done by another user, then the modification done by the first user will be lost by the last update. When multiple users try to work on the same file or folder, then conflict arises. Git files and folders of any git project can be shared by multiple git users who are work on a team.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |