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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:28:20+00:00 2026-06-07T22:28:20+00:00

I’m just starting to use git for my thesis and my question is what

  • 0

I’m just starting to use git for my thesis and my question is what will be an appropriate workflow for me.
Here my prerequisites:

Hardware used:

  • Laptop A used at home
  • Laptop B a netbook used when I’m in the library
  • Desktop computer at university
  • Private filespace on a server of my university which also runs git (preinstalled by the university, nice, isn’t it?)

What I did until know is writing my thesis with LaTeX and copying it between all these computers by hand. It often happens that I’m writing sth. on one machine but then I have a day off and I don’t know where’s my most recent version. In these cases I used diff to compare and find out what document is the most recent one.

A little bit of reading about git showed me that it would help me a lot.
I thought of something like having a central repo at the server and pushing/pulling to/from it with all the computers.

I now have created a bare repo on the server and I have created local repositories (by git init) on each of the computers.

But I’m not sure if this was right:
Right now all computers are in sync so all local repos contain the same files/versions. I have pushed to the bare repo on the server from my Laptop A.

I tried to pull from the server repo to my Desktop computer:

git pull origin master 

output:

* branch            master     -> FETCH_HEAD
Merge made by the 'recursive' strategy.

That created a branch on my Desktop computer, if I understood it correctly. Should I apply any further operations after this before I start working on the desktop pc?

Another try was:

git pull origin master:master

output:

 ! [rejected]        master     -> master  (non-fast-forward)

As far as I read it in the Git book that’s an expected behaviour though I can’t say why. Wouldn’t this prevent that a new branch is created each time I pull?

Anyway, I now read over many posts here on stackoverflow and also some chapter in the official git book, but I must say, my head is humming a little bit.

I don’t know if the workflow I started here is correct at all for what I want to achieve. Maybe I should not use the server git but just clone to the filespace?
Could somebody get me on the right track?

Thanks a lot.

  • 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-07T22:28:22+00:00Added an answer on June 7, 2026 at 10:28 pm

    After creating your bare repo on the server, instead of running git init on each of the computers, you should clone from the bare repo on the server. For example, if you are using ssh protocol you could do something like this on each of the other computers:

    git clone ssh://username@servername:/path/to/bare/repo.git
    

    That will automatically set your origin remote to the server with the bare repo. You can then make all the changes you want on your local computer, commit your changes locally with something like this:

    git add .
    git commit -m 'Made some changes'
    

    Then you just do:

    git pull
    

    when you want to update, and:

    git push
    

    when you want to push the changes you’ve committed locally to the server.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I need a function that will clean a strings' special characters. I do NOT
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

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.