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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:11:59+00:00 2026-06-06T19:11:59+00:00

I use git to manage my dotfiles, I use both linux and mac osx

  • 0

I use git to manage my dotfiles, I use both linux and mac osx so I create separate branches for these two and another master for the common settings.

When I edit something which is common and I want to save the changes to another branch. This is how I work at the moment:

git checkout master
git commit ...
git checkout arch
git checkout master <file1>
git checkout master <file2>

This is a lot of work. Can I checkout a commit instead of file, or is there any even shorter way than 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-06-06T19:12:01+00:00Added an answer on June 6, 2026 at 7:12 pm

    Instead of cherry-picking (see its disadvantage here), I would rather merge master in the other branches.

    See for instance “Git branches for working on dev while merging some changes into the master“.
    That way, you know what was already integrated into your branches from master.

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

Sidebar

Related Questions

We use git to manage our code, and just create one tag when release
I'd like to use git to manage my various Visual Studio projects. Unfortunately they
We are looking to use GIT to help manage our web files as we
I use git checkout -b somebranch origin/somebranch to make sure my local branches track
I am trying to use 'git log --pretty=tformat' to create xml file log. However
I have a project I manage out of a git repository. We use the
Originally I try to use gitosis to manage the git repositories in the company,
We use Beanstalk to manage Git repositories across multiple projects and participants (dev/designers) for
I am using Gitolite to manage my git repositories. And I also use a
I have been working on some code, which I use git to manage. Earlier,

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.