How to change pushed commit messages

checkout to the respective branch where you need to change commit titles..

git rebase -i HEAD~3 or 4 – depends on how many you need to check.

Goto the respective line or commit id where you need to change..

press ‘i’ – to insert

change ‘pick’ to ‘r’ – desired commit you would like to

change your commit message..

press esc button and type “:wq” and hit enter

After rebasing successfully..check log by ‘git log -n 3’ to see your changes. come out of this command by pressing ‘q’.

Now do ‘git fetch’ followed by ‘git merge’. Do not forget to press ‘i’ and esc + ‘:wq’

Finally git push origin HEAD

All the best

Configure git inside of sublime text editor windows


Lets see the configuration process that needs to be done in order to work with git commands in sublime text editor for workflow..

Prerequisites are

1. Git (command prompt only) –¬†

2. Sublime text editor

3. Sublime git package (refer

I hope with this you installed git and configured path in environment variables too..

Its better refer this url before you go with installation..

Now lets begin the show.. ūüėČ


I am directly moving to the configuration hoping you set the path for git and nodejs in environment variables which includes npm path in AppData too. Now run command prompt..

1.¬†git config –global core.editor “‘c:/program files/sublime text 2/sublime_text.exe’ -w”

With this you can view .gitconfig file in C:/Users/username/ which should be as follows

gitconfig file:

name = sathya
email =
editor = ‘C:\\program files\\sublime text 2\\sublime_text.exe’ -w

You can test it by app.js –edit in command prompt like

c:/project/folder/app.js > app.js –edit

this will open app.js file in sublime text editor

2. Now create a folder named sublimegit and extract sublimegit package in to C:\Users\username\AppData\Roaming\Sublime Text 2\Packages\SublimeGit

3. Now restart your sublime text editor

4. Now check your git commands in editor by going to command palette(ctrl+shft+p) and type add/push etc to show up with commands like git:Add etc.


5. How to add and commit and push to your remote git repository..

after changing necessary code in app.js..just goto command palette and type/choose “git add current file” then followed by “git quick commit” and “git push”

How to find the differences in versions of your files when you pull from git repository..

Sublime Text’s Git package offers several useful diff options, all available from the Command Palette (control+shift+p).

  • “Git: Diff Current File”, which presents a diff of the current file and the last commit
  • “Git: Diff “, which presents a diff of all files in your repository the last commit.

The diff will open up in a new file tab within Sublime Text. What’s nice is that there is syntax highlighting which helps you identify the additions and deletions.


Wanna view log??

Just type and select “Git: Quick Log” in command palette to view the latest log for the whole repository.


Get an annotated version of the entire current file.
After adding files, commit them all with a message. (Close the file without saving it to commit)
Quick Commit
Add and commit the current file, after asking for a message.


Show the status of the repo. Chosing a file gives you a diff of it.

Refer Git Commands for sublime text editor here

Useful commands:

to clone from git repository or any shared path:

git clone git:// my-linux

to check username/email/etc

git config --list

More Package control repositories for sublime text editor

Useful links: