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

  • Home
  • SEARCH
  • 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 6848523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:52:43+00:00 2026-05-27T00:52:43+00:00

I just started playing around with git (coming from SVN), and I’m sure I’m

  • 0

I just started playing around with git (coming from SVN), and I’m sure I’m not thinking of this in the right way – I cloned a repository from github, and removed tags from it and added my own. But when I do a git status or git diff, it says there’s nothing to commit. Shouldn’t it be comparing against the github project I cloned from? I’m thinking of this the wrong way I know, but maybe someone can help me wrap my head around this.

  • 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-05-27T00:52:44+00:00Added an answer on May 27, 2026 at 12:52 am

    You are looking at this the wrong way.

    What you need to do is forget what you know about svn. In svn, you have a repository, which is located on a server. You change your files and commit a delta of them.

    In git however, you have a repository on your computer. If you want, you also have one on github. Someone else working on your project would also have a repository of her own. Notice that I said repository. Yes! Repository! Which means you have all the history right there in your computer. You can commit, create tags, branch, merge, everything on your own computer without touching anything in github.

    Welcome to a distributed version control system.

    Another difference with svn is that, you don’t see the commits as deltas, but you see each commit as the whole set of files from your project. So for example weird merge of svn (where you say merge the difference between this revision and that revision to my files) doesn’t exist in git. You just merge with that snapshot of the project.

    Commit then means to commit changes to your files to your own repository. Creating tags is another process. A process that doesn’t change your files (unlike svn where creating a tag means copying files). A tag in git is just a pointer to a specific commit!

    So what you want to do is two different things:

    • Commit: commit changes to your repository. The command is

      git commit
      

      you can add files to the commit with git add some_file and commit only part of changes to your source code (which is something you don’t get with svn). Or if you want to commit all changed files, you add the -a option.

    • Push: push sends to another repository, let’s say a remote repository, named origin (which points to github), all that you have in your own repository. This includes all commits, and if you specify -tags also the tags you created. For example:

      git push origin master -tags
      

    Alternatively, when you want to update your repository, from origin, you would first:

    • Fetch: update your repository to the remote one. The famous:

      git fetch origin
      

      this brings all the new commits and tags that exist in origin but not your local repository.

    • Merge: Then update your master branch to that of the remote’s:

      git merge remotes/origin/master
      

    So back to your case, no there is nothing to commit, but there are tags that you need to push. One last thing to tell you is that, when you remove tags, you remove them only from your own repository. To remove it from the remote:

    git push origin :refs/tags/tag_name
    

    Understanding this syntax requires a bit more advanced tutorial on git push, but for now accept this. Note that removing tags is strongly frowned upon. This is because if someone downloads that tag and starts using it and get dependent on it, she can’t find it again later if she needs it. So, when creating tags, make sure the software/library is they way you want it to be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just started playing around with android, so pardon me if this is a
I just started playing around with MSBuild this evening and am porting an nAnt
I just started playing around with the WPF RibbonControl library from Microsoft (October 2010
I just started playing around with Phing build scripts (built with PHP). From what
I just started playing around with JSON and I have created this example. var
I've just started playing around with Android Licensing and I ran into this problem.
I just started playing around with threading today and I ran into something that
I just started playing around with the 960 CSS framework and found that it
I'm just started on playing around with the canvas HTML5-object. For the sake of
I'm just getting started with ASP.NET MVC 2, and playing around with Validation. Let's

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.