Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore files via GUI in Gitkraken?

Tags:

gitkraken

I come from SourceTree to board the GitKraken hype train. It has always been pretty easy to ignore files within ST. Just right-click on a file in the unstaged container and you've all the options. You can ignore the files directly, each file beneath a specific folder etc. (so, all the .gitignore stuff from within the GUI =)).

However, I can't find a similar feature in GitKraken. Does anybody know how I can ignore files via the GUI of GitKraken?

Please note: This is not a git question. I absolutely know in depth how ignoring files in Git work. But that's not the topic whatsoever. This is just a trivial GitKraken support question.

like image 322
OddDev Avatar asked Aug 12 '16 12:08

OddDev


People also ask

How do I ignore files in Git GUI?

Ignore files locally without committing ignore rules You can set a global . gitignore , but then all your repositories would share those settings. If you want to ignore certain files in a repository locally and not make the file part of any repository, edit . git/info/exclude inside your repository.

How do I ignore files in my repository?

If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a . gitignore rule for it. Using the --cached option with git rm means that the file will be deleted from your repository, but will remain in your working directory as an ignored file.

How do I ignore files while pushing to Git repository?

Excluding local files without creating a .Use your favorite text editor to open the file called . git/info/exclude within the root of your Git repository. Any rule you add here will not be checked in, and will only ignore files for your local repository.

How do I ignore files in a folder in Git?

Personal Ignore Rules Patterns that are specific to your local repository and should not be distributed to other repositories should be set in the . git/info/exclude file. For example, you can use this file to ignore generated files from your personal project tools.

What is the GitKraken Git GUI?

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”. Clicking the file in the “Unstaged Files” area will open a view allowing you to see the changes to the file -

How to configure Git to ignore files that are not checked in?

You can configure Git to ignore files you don't want to check in to GitHub. You can create a .gitignore file in your repository's root directory to tell Git which files and directories to ignore when you make a commit.

How to stage files in GitKraken?

The GitKraken Git GUI makes this easy as well. 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. While still hovering over the line, mouseover the button and click it. Alternatively, right click the line and choose, “Stage” from the popup menu -

Can you discard changes in GitKraken?

Be careful not to click “Discard changes”, as that will revert your change - i.e., you’ll lose your work! 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”.


1 Answers

Currently there isn't an option to ignore a file through the GitKraken GUI. If you check their post on twitter this is planned to be implemented soon and it will be in their release notes once this is completed.

UPDATE (26.01.2017.):

Version 2.0.0 brings the .gitignore option to the list of functionalities. You can now select a file or folder in the file staging area, and add to the .gitignore file on the fly. Right-click and select Ignore. From there, you can:

  • Add that specific file to .gitignore
  • Add all files with that file extension to .gitignore
  • Add all files in the same folder as the selected file to .gitignore
  • (If selecting a folder) add that folder to the .gitignore
like image 131
Marko Letic Avatar answered Sep 17 '22 12:09

Marko Letic