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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:37:20+00:00 2026-06-09T05:37:20+00:00

When setting up a dotfiles repo for several different platforms (eg. OS X, linux

  • 0

When setting up a dotfiles repo for several different platforms (eg. OS X, linux and Cygwin) would it be best to create branches for each machine type, or to use separate projects?

Many of the files will be the same, but some will have minor differences.

I tried creating branches off of my master, but pushing to the remote repo led to things like:

Your branch and 'master' have diverged,
and have 4 and 1 different commit(s) each, respectively.

I don’t understand why my “Cygwin” branch is reporting its out of sync with master. It’s a branch — it’s supposed to be different that the master.

Any suggestions of the best practice to accomplish my goal.

Thank You.

  • 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-09T05:37:21+00:00Added an answer on June 9, 2026 at 5:37 am

    The diverged message means that you have a tracked branch. You could disable tracking, see here how.

    However, I don’t think that the way you are using branches for multiplatform builds is correct. Better if you will have platform-dependent stuff separated by the code, e.g. by using conditional #includes, #defines or build scripts.

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

Sidebar

Related Questions

Setting up Eclipse on each machine I work it a real headache and I
Setting up new git installations. On one Windows laptop, I'm running (under cygwin): git
Setting: Multiplayer team game. Problem: Each player has a 1 to 5 star rating
setting type to hashed seems to not allow enablePasswordRetrieval. what if a user forgot
Setting: A pseudo-random pattern has to be generated. There are several ways / or
Setting up an integration server, I’m in doubt about the best approach regarding using
Setting value in html control in code behind without making server control <input type=text
Setting the hostname on an archlinux machine is relatively trivial according to this -
Setting up paperclip with S3 in my linux dev environment was a snap --
Setting up a project structure; I am thinking is it better to have somewhat

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.