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 7972847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:57:46+00:00 2026-06-04T07:57:46+00:00

I’ve been having a hard time with Git since I started using it. It’s

  • 0

I’ve been having a hard time with Git since I started using it. It’s a learning curve that I want to beat. I’ve read thru the manuals and FAQs and several other sites but I’m still not seeing the behavior that I expect and hoping someone that’s using VS2010 with GiHub can’t give me the magic pointer I need.

These are the steps that I do to create a new project/repository.

1. Create new repository on GitHub – give it a name and create it

2. Create my solution in VS2010

3. Commit for first time

These are the steps that I take to commit the solution for the first time:
(I have git and git extensions installed and I have a VS Toolbar created that allows me to pop up the git bash from within VS2010)

I click on the Git Console button I have created on the toolbar and I get the bash window and the current directory is the root directory of my solution

I then execute these commands to commit my solution to the GitHub repository on the GitHub site

1. git init – works fine

2. git add . – works fine

3. git commit -m ‘First commit’ – works fine

3. git remote add origin git@github.com:alfalfastrange/RepositoryName.git – works fine

4. git push -u origin master – I am then treated with a reject message and an error about fastforward etc, etc…

5. git pull origin master – works fine

6. git push -u origin master – the commit works and I can then see the whole solution online on GitHub

Now the problem I have is from here on out… if I make and changes to my solution I cannot get them into GitHub. For example, I delete files, add files and add code, etc and then I’m ready to commit all these changes

I’ve tried these sequences of events and had no luck

1. git add .

2. git commit -m ‘Second commit’ – adds changes to the local repository

3. git push -u origin master – Am given message that everything is up to date, I check the online repository and there have been no changes made

4. git pull origin master – Am told everything already up to date

5. git push -u origin master – Am given message that everything is up to date, I check the online repository and there have been no changes made

6. git push origin master – Am given message that everything is up to date, I check the online repository and there have been no changes made

It seems all the commit does from that point on is commit changes to the local repository and none of the commands I’ve tried will push the changes to the GitHub repository.

So at this point I’m slightly annoyed that it’s not easier. With my Ankh SVN and Codesion setup all I have to do is click Commit or Update to push changes or pull latest from the online repository.

What am I missing? Because I want to be able to use Git successfully and without fear for all of my personal projects. Thanks in advance!

UPDATE

After running the git branch -avv command this is the result

enter image description here

Update 2

After running steps 1 – 6 with the -f added to step 3

enter image description here

Update 3

After running sequence of commands from answer

enter image description here

Which doesn’t make any sense to me because we did all that already… I’m using only the Git Bash

  • 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-04T07:57:46+00:00Added an answer on June 4, 2026 at 7:57 am

    Just so people don’t have to scroll through the comments:

    Run git fetch origin to fetch the remote branches into your local repository. (You could also roll this step into the git remote add step with the -f flag.) Once that’s done, you can track the remote master with your local master.

    Once everything is hooked up, the simplest workflow looks like this:

    # assuming an up-to-date branch and a dirty working copy
    git add .   # Add changes under the current directory to the index
    git commit -m "Commit message"
    git push origin
    

    You can roll the add and commit into one step as well:

    git commit -am "Commit message" # Commit changes in tracked files to your local repo
    

    Keep in mind I have no idea how Gitextensions works; it probably has its own plugin-y stuff for this.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have a jquery bug and I've been looking for hours now, I can't
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am reading a book about Javascript and jQuery and using one of the

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.