[kwlug-disc] Github question

Chris Frey cdfrey at foursquare.net
Wed Apr 29 07:03:52 EDT 2020


You shouldn't really need stash for this.  As long as you haven't committed
anything to master yet, the master branch is untainted and ready
for branching.

	git clone <site>
	cd project
	vi file # work hard, leave a mess on master but don't commit
	git checkout -b my-personal-branch
	git commit -a
	# make remote on github
	git remote add myfork <site>
	git push myfork my-personal-branch

- Chris


On Wed, Apr 29, 2020 at 02:03:56AM -0400, Khalid Baheyeldin wrote:
> Update: "git stash branch" did it.
> 
> - git stash (everything goes into stash 0)
> - git stash branch newboard stash@{0} (use the stash to create a new branch)
> 
> Now I have a branch called newboard, which I pushed to the remote.
> 
> All good ...
> 
> On Tue, Apr 28, 2020 at 11:30 PM Khalid Baheyeldin <kb at 2bits.com> wrote:
> 
> > On Tue, Apr 28, 2020 at 11:06 PM Hubert Chathi <hubert at uhoreg.ca> wrote:
> >
> >> You should be able to just fork the official project, add your fork as a
> >> remote, commit your changes to your local repository, and then "git push
> >> khalid newboard:newboard" to your fork.
> >>
> >
> > If I commit to my local repo, then it will go into my master.
> > I want my local changes to be committed to a branch that I can delete later
> > after the pull request is complete.
> > --
> > Khalid M. Baheyeldin
> > 2bits.com, Inc.
> > Fast Reliable Drupal
> > Drupal performance optimization, hosting and consulting.
> > "Sooner or later, this combustible mixture of ignorance and power is going
> > to blow up in our faces." -- Dr. Carl Sagan
> >
> 
> 
> -- 
> Khalid M. Baheyeldin
> 2bits.com, Inc.
> Fast Reliable Drupal
> Drupal performance optimization, hosting and consulting.
> "Sooner or later, this combustible mixture of ignorance and power is going
> to blow up in our faces." -- Dr. Carl Sagan

> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org





More information about the kwlug-disc mailing list