

Once this view opens, you get those options I previously mentioned. Clicking the file in the “Unstaged Files” area will open a view allowing you to see the changes to the file – Diff View With the GitKraken Git GUI, you can dive even deeper into staging and unstaging, by staging individual LINES of a file or multiple lines known as “hunks”. Hovering over an item in the “Staged Files” section gives me a red, “Unstage File”, button, similar to its green counterpart mentioned previously – Unstaging a Single File / ChangeĪlternatively, right click the line and choose, “Unstage” from the popup menu – Unstaging a Single File / Change Staging a Single File / ChangeĪlternatively, right click the line and choose “Stage” from the popup menu – Staging a Single File / Changeīe careful not to click “Discard changes”, as that will revert your change – i.e., you’ll lose your work!ĭoing that for a couple of the items results in the following screenshot – Some Changes StagedĪs you can see, I still have the ability to “Stage all changes” for what remains in the “Unstaged Files” section, and the ability to “Unstage all changes” in the “Staged Files” section. While still hovering over the line, mouseover the button and click it. Simply hover over the entry in the list you want to stage and a green, “Stage File” button will appear on that line, in the far right. The GitKraken Git GUI makes this easy as well. With that complete, you now decide you want to stage only a few of the changes. You’ll see that the list moved back to the top, indicating all the changes are currently unstaged. But what if you decided you weren’t ready, and wanted to unstage the changes? Well, the GitKraken Git GUI gives you a simple button to “Unstage all changes” as shown in the following screenshot – Unstaging Changes Note that all the icons remain the same in this list, so you can easily tell which type of change was staged for a given entry.Īt this point, you would be ready to “commit” these changes to your local repository, if desired. I can “stage” all of these changes at once by clicking the green, “Stage all changes” button in the area above the “Unstaged Files” list – Stage All ChangesĬlicking this button will move all of the lines shown from “Unstaged Files” to “Staged Files” – Staged Files


#GITKRAKEN PULL NO FILES ON COMPUTER PLUS#
The green plus icon indicates a new file was created. The red dash icon indicates a file was deleted. The yellow pencil icon indicates a change was made to a file. You can see in the following screenshot, all three of these types of changes waiting to be staged – Changes Waiting to be Staged With all three of these types of changes, nothing is ready to commit until we “stage” them. If you delete a file that was previously being tracked.If you add a new file to the repository (that isn’t being ignored by git – we’ll dive into git ignore files soon, too!), it will simply exist on disk, and git will know it’s new, but again if you commit now, nothing will actually happen.We have to tell git that the changed file should be committed by “staging” it. If you were to perform a commit on the repository right now, nothing would actually happen. When you make a change to a “tracked” file (a file that has previously been committed to the repository, for example, a file that you received during the cloning process), it simply exists in a changed state on the file system and git knows it changed.There are three primary reasons you might need to “stage” a file: Let’s get an idea of what it means to “stage” (or “unstage”) your changes in a git repository.
#GITKRAKEN PULL NO FILES ON COMPUTER HOW TO#
In this post, I’m going to show you how to add and remove files – or, in git lingo, stage and unstage files.

However, just editing or creating files in the repository doesn’t necessarily mean they’ll be committed, pushed (future topics, I promise), and available for other folks to work with. Now that we have a repository to work with, we need to make some changes! Maybe that involves changing existing files or adding new ones. In my previous post, “ GitKraken Git GUI How-To: Cloning a Repository“, we went over how to do just that. GitKraken Git GUI How-To: Add & Remove Files YouTube Video
