Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8965049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:43:42+00:00 2026-06-15T16:43:42+00:00

I have tried git commit -v ubuntu@ip:~/agile$ git commit -v # On branch master

  • 0

I have tried git commit -v

ubuntu@ip:~/agile$ git commit -v
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   .htaccess
#
no changes added to commit (use "git add" and/or "git commit -a")
ubuntu@ip:~/agile$ 

But it is just showing me that .htaccess has changed, but not what has changed. How do I achieve this?

Update:
In Aptana Studio it is possible to see the changes before you commit anything. So back to my question, there must be a way to see the difference to the original state, before you actually commit. Maybe there is a different command for that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:43:43+00:00Added an answer on June 15, 2026 at 4:43 pm

    Make sure you’ve staged some changes. Otherwise, git commit -v will show you a block similar to what you posted, but not do anything. You can stage changes manually with git add, or if the files are already versioned, you can use git commit -a -v to stage and commit the changes.

    For example:

    $ echo "more foo" >> foo.txt
    $ git commit -v
    # On branch master
    # Changes not staged for commit:
    #   (use "git add <file>..." to update what will be committed)
    #   (use "git checkout -- <file>..." to discard changes in working directory)
    #
    #   modified:   foo.txt
    #
    no changes added to commit (use "git add" and/or "git commit -a")
    

    Staging the change shows the diff with git commit -v:

    :: git add foo.txt
    :: GIT_EDITOR=cat git commit -v
    
    # Please enter the commit message for your changes. Lines starting
    # with '#' will be ignored, and an empty message aborts the commit.
    # On branch master
    # Changes to be committed:
    #   (use "git reset HEAD <file>..." to unstage)
    #
    #   modified:   foo.txt
    #
    diff --git a/foo.txt b/foo.txt
    index 257cc56..a521556 100644
    --- a/foo.txt
    +++ b/foo.txt
    @@ -1 +1,2 @@
     foo
    +more foo
    Aborting commit due to empty commit message.
    

    If you just want to see the diff without committing, use git diff to see unstaged changes, git diff --cached to see changes staged for commit, or git diff HEAD to see both staged and unstaged changes in your working tree.

    UPDATE: given your edit, what you really want are the git diff derivatives above. I’m not sure how Aptana Studio works. It may not follow the typical command line git flow. On the command line, you’d stage your changes, and then commit. And the above git diff commands are what you’d use to examine those changes. I typically alias them as git unstaged, git staged, and git both by adding this to my ~/.gitconfig:

    [alias]
        # show difference between working tree and the index
        unstaged = diff
    
        # show difference between the HEAD and the index
        staged = diff --cached
    
        # show staged and unstaged changes (what would be committed with "git commit -a")
        both = diff HEAD
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I do: $ git commit . $ git push error: Entry 'file.php' not uptodate.
I have a file, foo.txt Create and checkout branch 'branch_A' git mv foo.txt bar.txt
Possible Duplicate: Show the original branch for a commit git version 1.7.4.1 I have
I have a git branch (called v4), that was made from master just yesterday.
I have a git commit history like this: U / A---B---C---D---E master Nothing points
I have tried: git archive HEAD --format=zip > archive.zip :and then I email archive.zip
I have tried searching over the internet about this problem but not able to
I have tried to install gem draper and it asked me to update my
I have a big repository in a shared folder. I use git from within
I have started to use git for my projects, when I create a project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.