

In Sourcetree for push a new stash you need select the Stash button in the top toolbar.įor apply or delete a stash you can use the Stashes menu in the sidebar. The command saves your local modifications away and reverts the working directory to match the HEAD commit. Use git stash when you want to record the current state of the working directory and the index, but want to go back to a clean working directory. Show changes between commits, commit and working tree, etcįor doing the same in Sourcetree you just need select 2 commits in the History. For doing this in Sourcetree you need select the Commit Options in the right top of the commit input box and select the option Amend last commit. In Sourcetree you can achieve the same result clicking in the rounded Commit button at the top left corner, write the message in the text box and commit it by clicking the right bottom button.Īdding the amend option you will replace the tip of the current branch by creating a new commit.

In Sourcetree we can check the log in the History tab. In this post we will show how to run some git daily basis commands with the Sourcetree GUI. It enables you visualize and manage your repositories through a simple Git GUI. Sourcetree is a free Git client for Windows and Mac that simplifies how you interact with your Git repositories so you can focus on coding. Graphical User Interfaces (GUI's) can make your life easier and improve your productivity.

Remembering many git commands and also doing it in the terminal can be hard if you don't have too much practice. 3 min to read Useful git commands with Sourcetree GUI A list of git daily basis commands with Sourcetree GUI.
