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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:05:33+00:00 2026-06-07T20:05:33+00:00

I am verry new to git. I cloned a project on my local server

  • 0

I am verry new to git. I cloned a project on my local server and I edit my files with TextMate.

So, I had a branch called master. Then I created a second branch called local. I made somes modifications, added some files and commited them all. But now when I go back to my master branch, I am unable to edit with TextMate the ancient files (non modified master branch files). How is it possible to fix that? Am I supposed not to use TextMate?

Best,
Mehdi

  • 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-07T20:05:35+00:00Added an answer on June 7, 2026 at 8:05 pm

    Did you do something like this then:

    #clone out repo that only has master branch
    git clone path/to/repo
    
    #create and checkout branch local
    git checkout -b"local"
    
    ## edit files ###
    
    #stage files
    git add .
    
    #commit changes
    git commit -m"did some work"
    
    #switch back to master
    git checkout master
    

    At this point you should be on your local master branch as you were after clone. If you want to merge in your changes from local into master:

    git merge local
    

    At any point you can run git status to see which files have changed and git branch -a to see all of the branches on your repo

    If you did all of this correctly and still cant edit the files then it could be a permissions issue:

    sudo chmod 644 /path/to/local/files/* -R
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I am using git by creating a new branch for each feature, then
I'm pretty new to Git. Right now I only have a master branch for
I'm new to Git. Before using Git, I used Subversion for my web project.
I am a git newbie. I just created a new project with just 4
I am very new to git. I have a .gitignore in the my working
I'm very new to git. I wanted to create a repository named Common-Lib, below
I'm very new to Git and I've been following this online tutorial for converting
I am very new to Git and I have a slight problem. In SVN
Normally, when I start up a new application, I'd create a new git repository
I am relatively new to Git, and I'm still not very comfortable with it.

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.