git rm can be used to remove files from the index and the working directory.git reset command will reset the index and the working directory to the last git commit’s state.Running the command will get you an output that looks like this:Ĭommit 15f4b6c44b3c8344caasdac9e4be13246e21sadw git log is used to see the repository’s history by listing certain commit’s details.Developers usually use it to mark release points like v1.0 and v2.0. To list down all the present conflicts, use:.The following basic command is used to view the conflicts between branches before merging them:.In order to view conflicts against the base file, use git merge is used to merge a branch into the active one.git pull merges all the changes present in the remote repository to the local working directory.For instance, if you want to list all the branches present in the repository, the command should look like this: git branch will list, create, or delete branches.Meanwhile, the following command will delete a connection to a specified remote repository:.To connect the local repository to a remote server, use the command below:.The following command will list all connections along with their URLs: git remote lets you view all remote repositories.To switch from one branch to another, simply use:.For example, the following basic command creates a new branch and automatically switches you to it:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |