Why does git call me “clever” when I reword the last commit message?
I regularly run
git commit --only --amend
to reword the commit message of the latest commit I made. This will work irrespective of whether my working directory is clean or not.
Today I noticed that when doing this, the default instructions for writing commit messages shown in my
core.editor include the following comment:
# Clever... amending the last one with dirty index.
Aside from having a bit of an easter egg charm to it, what is this message supposed to tell me? Is it an ironic way of saying that I should be careful when messing with previous commits (esp. if there are staged/unstaged changes present)? And why does it show up even if my working directory is clean?
Context Long time ago I created https://github.com/nicolas-raoul/Anki-Android (repo1). Someone forked it into https://github.com/ankidroid/Anki-Android (repo2) which is now the place where we all
I did a git commit -m message like this >git commit -m save arezzo files # On branch master # Changes not staged for commit: # (use git add <file>... to update what will be committed) #
Given a file foo.m, how can I get Git to show me the complete contents of foo.m, as they were at some commit x?
I'm using msys git and one thing I've noticed is that when I am in vi and I write a commit message that contains two or more linefeeds that when it is actually committed there will only be a single li
I was wondering if it is possible to push all my local commits (all 'unpushed' commits of the day) to the remote repository as a single commit with a custom message. None of the posts on Stack Overflo
I want to get the last commit ID of the git repo. I know that I can do it from commands like git rev-parse HEAD. But that works only for the locally cloned git repo. I want to get it from the original
I'm learning Rx and I don't understand why my code is suspending. This is easy Rx observable and I want to provide last element when it is completed. var observable = Observable.Range(1, 20); var resu
git commit opens the text editor and displays some information about the changes to be committed: # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an
I am trying to find a Git Commit Monitor for Windows. Does anyone know whether one exists or ? Ideally it would essentially monitor the log and notify when a new commit has occurred ? Thx
As a newbie git user; when I try to commit my work with git commit -a -v and after I make the necessary changes, I close the file and get this Aborting commit due to empty commit message. error. I h
I'm using a git submodule (let's call it SubmoduleRepo) so that I can include my module in couple of projects. I can commit to SubmoduleRepo from any project that uses it. I can update, commit and pu
I've googled a lot but I can't find an answer. For what I've understood, a commit should be applied each time a file is edited. Explaining what was the edit, why, etc. Then I should push the commit to
None of the tutorials will help! They all do that thing where they just assume I know what to do.. Currently, my terminal window starts with.. # Please enter the commit message for your changes. Lines
I'm learning Git coming from Perforce. As far as I can tell you must write the commit message in the same step as when you commit. Or am I missing how I might write the message earlier and have it han
Is there a way to get the last commit message without access to the repo? svn log --limit 1 tries to connect to the repo. EDIT: I have credentials setup and using them to check out the source. What I
So I have this line in my routes.rb match 'calculate' => 'index#calculate' And it gives me an error when trying to load the index page: You should not use the match method in your router without
I was trying to follow the instructions from Git: Not currently on any branch. Is there an easy way to get back on a branch, while keeping the changes? but git checkout appears to be broken: $ git c
When I do a git commit -a, I am seeing the following: # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On bran
I committed several files that I pushed like that on my dev computer: C1-C2-C3-C4 And now on my prod environnement I do not want to pull the C2-C3 commits. I want directly go from C1 to C4. I do not
Is it possible to make git commands highlight a commit message in the terminal? For example: $git stash Saved working directory and index state WIP on master: 9d657ff Sort events HEAD is now at 9d657
Can one amend a git commit message using IntelliJ, or should one resort to command line? How can this be done please?
I am simply trying to do a git pull which I have done hundreds of times. For some reason, this time it is showing me this in the console # Please enter a commit message to explain why this merge is ne
I would really love a specialized git alias / bash function that can do the following. git add -A git commit -m $MESSAGE git push origin master All with a single command. gacp > My message CONTE
I just want to retrieve the commitlog from Git repository that has messages for all the commit you've done on a specific repopsitory. I had found some code snippets for achieve this and ends with an e
When handling pull requests on GitHub, often I want to merge in commits from a branch with no changes. However, I would like to commit something just after the merge. I don't want to git commit --amen
I added a .gitignore file after git add .. I'd like to know if I can proceed to git commit and push it and git will ignore the files. If not how should I delete the files which I git added. Where does
I'm trying to use the maven SCM plugin to commit some files to a git repo during an automated build, the plugin requires a commit message to be set as a system property, I don't want to have to pass t
I am new using Git. Yesterday I did a Clone, and after playing around (did lots of merging/branching) I decided to start brand new. So I deleted repositories, deleted all files including the main fold
I want to modify a commit message deeper in history. And I've pushed many new commits. How do I change the commit message? Is it possible? Thanks!
Why does 'git mergetool' (meld) show me the ancestor view WITH conclict markers? This is totally wrong and I've never understood why it does this. How can I fix it? A 3 way merge should show [ Your Ch
I'm trying to output the full commit message in the console, and I am able to but I have to keep resizing the console window(cygwin) in order to reveal more. The command im using is git log --pretty=
I am unable to commit changes in my project when using git. Here is my terminal: tomas@tomas-laptop:~/menu_operations$ git commit -m initial commit error: Unable to append to .git/logs/refs/heads/7.
May be its asked already but I couldn't find it in here. I have a branch FEATURE merged into a branch STABLE and currently when I do git show from STABLE am getting the last commit which is commit 26
From time to time I find myself commit-amending using the same message. Typically, I do: Add my changes to staging area. Do git commit --amend. Wait for the text editor to open. Save and close it (wi
From here http://blog.prabir.me/post/Undo-in-Git.aspx, it said This undo’s your commit and also resets your working tree to the last commit. 1 git reset --hard HEAD^ But how can I un-do my last comm
I don’t understand git commit at all. It’s been a week since I’ve been using git and all these git with –a, -m, new files, untracked etc is making me totally confused. Tortoisegit is saving me for th
How do I enter an exclamation point into a git commit message from the command line? It is possible to escape the exclamation point with a backslash, but then the backslash ends up in the commit messa
I wanted to undo a couple minor changes on my repo. I decided to go back two commits, and did git reset --hard <commit> and git push -f Everything went through fine. But when I pushed to hero
I want to look at the commit by id. for instance I want to know the code that got committed for that Id something like : git log <commit_id> and this will display the commit code and message t
We are going to use Git where I work, and we have some in house programmers, and some external freelance programmers that have never used Source Control Management before. The reason we want to use Gi
When i was on point D in my project I've made some changes to my project and push several commit (E,F,G,H) to git so i am in point H. Now i have to make new change (I) and push them to git and deploy
I am trying to add a commit message to my changes using git commit -a OR just plain git commit this somehow opens GNU Nano 2.2.6 editor and I am not at all comfortable with it. So the question is
When I squash commits in a branch (using git rebase -i), I'm always annoyed that the squashed commit is combined with the older commit instead of the newer commit. I don't understand why it was design
I have just started using git and when I git commit it uses the VIM text editor to change write the commit message. Is this normal? In the tutorials and examples I have read, nowhere has VIM been use
I just realized that I left one word in the commit message of a previous commit (so I can't use git commit --amend) that makes the message mean completely the opposite of what I had intended. The comm
I'm running a --tree-filter in order to move a couple of directories, with history, to another repo. I'd like to append a line to the commit message, something like (Imported from ProjectA rev 684fa3.
This has probably been asked before so if it has, please point me to the explanation. I'm using the Git source control plugin for Visual Studio and have half-written a commit message. There's an Amen
Playing with Git and GitHub,I found that sometimes a git commit -a is needed to commit a file that is modified. (this file has already been added to the project). But sometimes, just a git commit wi
I have installed fresh Ubuntu 12.04 and initialized some project with git. When I did git commit, it opened some file with nano editor for me to enter commit description. Questions: 1) Can I use vi in
is there any size limit to the GIT commit message? I searched trough the web but cannot find any relevant mention about this except this one: http://lists.busybox.net/pipermail/busybox-cvs/2010-March/