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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:29:51+00:00 2026-05-11T17:29:51+00:00

I just jumped into Git yesterday via Github and am moving away from svn.

  • 0

I just jumped into Git yesterday via Github and am moving away from svn. I created a private repo that I intend to use to keep my personal projects synced between work and home. During the process of creating the remote repo, my local files from work were pushed up. Last night, I was able to pull them down to my laptop at home.

Now I added some new files to the repo directory at work. I did “git add filename” where “filename” is my file. Then I did “git commit -m ‘my message'” and that seemed to work.
I can’t push them to the remote though. I tried ‘git push personal’ but got an error:

To git@github.com:geuis/personal.git
 ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:geuis/personal.git'

Svn is really straight forward when it comes to this stuff. I’ve been trying to read through docs on how Git works, but most of it seems to assume you already know the basics.

For my situation, what are the basics I need to know? Remote repo on Github, and 2 separate checkouts at work and home that will be manually synced to the remote.

I’m on a Mac.

  • 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-11T17:29:51+00:00Added an answer on May 11, 2026 at 5:29 pm

    To be able to push to the remote, generally speaking, you need to be up to date with the remote branch. Try git pull first, then git push.

    Additionally, github recommends you do git push -u personal master so that the head is set remotely

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

Sidebar

Ask A Question

Stats

  • Questions 170k
  • Answers 170k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Is the application available offline or online only? My experience… May 12, 2026 at 2:11 pm
  • Editorial Team
    Editorial Team added an answer All of these are found in the manual. http://www.gnupg.org/related_software/frontends.html http://www.dewinter.com/gnupg_howto/english/GPGMiniHowto-3.html… May 12, 2026 at 2:11 pm
  • Editorial Team
    Editorial Team added an answer I'm assuming this is in a C-style language; if not,… May 12, 2026 at 2:11 pm

Related Questions

For context, I am something of an emacs newbie. I haven't used it for
I understand that I need to use LoadLibrary(). But what other steps do I
At my previous employer we used a third party component which basically was just
I've just started learning how to use pygame yesterday. I was read this one

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.