This works as a failsafe when a conflict occurs. git merge -abort - Aborts the merge process and restores the project’s state before the merge was attempted.git merge - Merge changes from one branch into the branch you currently have checked out.Used in combination with fetch, this will combine the fetched history from a remote branch into the currently checked-out local branch. git merge - Combine two or more development histories together.git config -local - Customize settings that are Git repository specific and overwrite Git configurations on the global and system level.git config -list - View all of your Git config settings including the local, global, and system levels.git config user.name - Sets the username associated with your Git commits and other Git actions.git config -system - Customize configuration settings for your operating system.git config -email - Sets the email associated with your Git commits and other Git actions.git config -global - Customize configurations stored in your home directory, and can overwrite Git config system settings.Add your message in quotation marks following the command. git commit -m - Add a Git commit message.Edit a Git commit message by adding a message in quotation marks after the command. git commit -amend - Amend a Git commit.git commit -a - Add all modified and deleted files in your working directory to the current commit.Running this command with an associated file name will save the file changes to your repo. git commit - Save changes to your Git repository.Running this command with an associated file name will stage the file changes to your staging directory. git status - Display a list of files in your staging directory with accompanying file status.git clone -no-tags - Clone a repository without copying the repo’s tags.git clone -depth - Clone a repository with a specified number of commits ().git clone -branch - Clone a repository and checkout the specific branch.If you do not wish to name the remote, Git will provide the default name origin. git clone -origin - Clone a repository and name the remote ().git clone - Clone a repository and name the local directory.See Git-SCM’s best practices for remote URL format. git clone - Clone a specified remote repository.git cherry-pick - Apply a commit’s changes onto a different branch.git checkout -b - Checkout a Git tag as a branch.git checkout - Checkout a Git tag in a detached HEAD state.git checkout - Checkout a previous Git commit.git checkout -b / - Create a local branch from the remote Git branch and checkout that branch.git checkout -b - Create a new branch and switch to it.git checkout - Switch to a different Git branch.Running this command will push your local branch to the new remote branch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |