Replies: 6 comments
-
I can see the motivation for this. Not quite sure how to implement it though. The issue is when cloning |
Beta Was this translation helpful? Give feedback.
-
What about the following pattern ? I'm doing it often. Let's assume there is repository named So a github.com/someuser/foo Either if you have a fork or not yet. I would use
This would fetch someuser/foo in ~/src/github.com/someuser/foo/ origin would be youruser/foo I would say it's OK to work in the folder of the "owner" locally, even if you push on your branch Is it what you are trying to achieve? |
Beta Was this translation helpful? Give feedback.
-
@muescha does it work for you? Was it what you were looking for? |
Beta Was this translation helpful? Give feedback.
-
@ccoVeille, indeed! Here's how I typically handle my workflow:
I'll try your suggestion with |
Beta Was this translation helpful? Give feedback.
-
I how my changes stay in place :) |
Beta Was this translation helpful? Give feedback.
-
I'm happy it helped you.
Then you only have to use the |
Beta Was this translation helpful? Give feedback.
-
I often fork repositories on GitHub and then retrieve them.
Here are the steps I'd like to follow:
Fork the repository on GitHub, and then
git grab
with my username.If there is already a cloned repository at
~/src/github.com/otheruser/repo
, instead of performing a git clone, I would like to locally move the existing directory usingmv
and adjust the remote repositories (origin
to my repository andupstream
tootheruser
).Beta Was this translation helpful? Give feedback.
All reactions