![]() ![]() ![]() The following output will appear after executing the above commands. ![]() Run the following commands to check the branch list, switch to the master branch, and display the status of the branch. Open the terminal and go to the repository folder. Create a file named index.html in the repository. The local repository named PHP2 has been used in this tutorial to show how to pull changes from one branch to another branch of the repository. You have to create a local repository to check the commands used in this tutorial. You will require to create a GitHub account to check the looks of the remote repository after publishing the change of the local repository. 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 stash command can be used from the terminal and merge commands from the GitHub Desktop to pull the changes from one branch to another branch in this tutorial. This task can be done by using multiple ways in git. Sometimes, the git users need to work with the multiple branches simultaneously and require to switch from one branch to another branch with the changes made in the previous branch to the current branch before commit. A git repository contains one or more branches to manage the code efficiently. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |