vim-fugitive like package for atom. make commits and other git things without the terminal
Make sure your gitconfig file is configured. You must configure at least the
Also, the package currently favors an ssh setup that doesn't expect to be prompted for credentials in order to push/pull, .etc. Github has a guide to help you set that up here
If you are on a Windows machine, I recommend checking out this thread if you have issues pushing/pulling from a remote repository with this package. I also don't have the means to do my own user testing in a windows environment so I won't be immediately able to help troubleshoot windows problems.
Showing the Git-Plus Palette
Ctrl-Shift-Hon Windows + Linux
Git Plus: Menuon the atom command palette.
Notifications will appear in a console output above the status bar. This view can be toggled by clicking the 'git+' icon in the bottom right of the status bar.
Keeps your local repo bang up to date by automatically fetching from all remotes in the background every minute by default. But this can be set to any interval up to an hour, or disabled if you prefer. A notification can also be set to keep you informed.
Commands are accessible for keybindings by dasherizing the command title. Add your own keybindings in your ~/.atom/keymap.cson file
Git Add ==
Git Add All Commit And Push ==
Note: The following list of commands is not exhaustive. If what you want isn't a feature, you can use
Git Run and enter the command.
||Execute a command manually by typing it without the git part. ex.
||Show current status.|
||Add the current file to the index.|
||Adds all files to the index (ex.
||Commit the staged changes. Git-Plus will show an editor for the commit message. To make the commit, save the file. To cancel the commit, close the tab.|
||Stages the current file before preparing a commit. (
||Stages all changes before preparing a commit. (
||Commit currently open file and push to a remote repo.|
||Commit all changes and push to a remote repo.|
||Amend the previous commit.|
||Undo changes and reset the current file to HEAD.|
||Change to another ref (branch or tag).|
||Create a new branch.|
||Show the diff of the current file, or all files. The diff can either be against the staged or un-staged tree, as selected in the options.|
||Show the diff of the current branch against another branch.|
||Show the diff of the current branch file against another branch version.|
||Push to or pull from a remote repo. If you have multiple remote repos, you can choose which to push to or pull from.|
||Show the commit history [for the current file] and show display the selected commit.|
||Show the specified object, for example
||Open tabs with all added, modified or renamed files.|
||Operate on tags individually. There are options to add, show, push, checkout, verify, and delete.|
Select lists that allow selecting multiple options
Stage hunk and
Cherry-Pick provide a list with the ability to select multiple options.
In this view, there are 'cancel' and 'apply/complete' buttons. The
esc key can be used to cancel and
the 'confirm' option can be invoked with
To change where the commit window appears go to settings and find
If you would like to use experimental features, enable them in the package settings.
If enabled, you can define your own commands in your atom
init.jsfile. These commands will appear in both the atom command palette as well as the Git-Plus command palette. Just like any other commands, you can define keybindings for them as well.
Example command for undoing the last commit:
# In init.coffee atom.packages.onDidActivateInitialPackages () -> if gitPlus = atom.packages.getActivePackage('git-plus')?.mainModule.provideService() gitPlus.registerCommand 'atom-text-editor', 'custom-git-commands:undo-last-commit', -> gitPlus.getRepo() # If there are multiple repos in the project, you will be prompted to select which to use .then (repo) -> gitPlus.run repo, 'reset HEAD~1'
The name of the command in the Git-plus palette will be the undasherized version of what you provided -> 'Undo Last Commit'.
Please beware of giving your commands the same name(undo-last-commit) as existing commands. They will appear as duplicates in the Git-plus palette.
Check out some commands here
Stage Files Beta
When enabled, the 'Unstage Files' and 'Stage Files' commands will be merged into one view where the staged status of multiple files can be toggled.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Write tests
- Make your changes
- Commit your changes
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request