Push uncommitted local git changes to a new remote fork

I have a local git repo (call it local master) associated with a remote (master) repo. I have uncommitted changes in my local master. I want to:

  1. push the local master changes to a new (remote) fork.
  2. continue to work on the local master changes, and then push it to the remote master.

Can I do this without creating a local copy of the remote fork? If I must create a local copy of the remote fork, is there a way to git copy the changes from local master to local fork? (I mean avoid doing cp localMaster/changedFiles localFork/changedFiles).

Why am I doing this? I have ugly but working code locally. Before I clean it up, I thought I should stash it away in a remote fork, in case I needed to look at the different things I tried before I got it to working. I wasn't sure branching was a good idea for this purpose.



from Recent Questions - Stack Overflow https://ift.tt/3qS6fqt
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)