Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Guide] How to use Github

OP eagleeyetom

16th September 2012, 05:53 PM   |  #21  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,715
 
4,047 posts
Join Date:Joined: Jun 2011
wow nice tutorial mr tomek bookmarked!
16th September 2012, 06:09 PM   |  #22  
mstfkaratas's Avatar
Senior Member
Flag Istanbul
Thanks Meter: 134
 
175 posts
Join Date:Joined: Oct 2011
More
very good tutorial, you can expand it with repo and gerrit guide.
16th September 2012, 06:55 PM   |  #23  
cowsquad's Avatar
Senior Member
Flag Portland, Oregon
Thanks Meter: 265
 
1,099 posts
Join Date:Joined: Aug 2009
Donate to Me
More
Awesome guide. I have trying to start understanding Github and this guide will do the trick

Sent from my Galaxy Nexus using Tapatalk 2
16th September 2012, 07:17 PM   |  #24  
lippol94's Avatar
Recognized Developer
Flag Cremona
Thanks Meter: 2,657
 
2,184 posts
Join Date:Joined: Nov 2010
Donate to Me
More
This thread is fracking useful!!
Thank you so much!

16th September 2012, 07:40 PM   |  #25  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
6,304 posts
Join Date:Joined: Mar 2011
More
this should be sticked
The Following 2 Users Say Thank You to -DarkKnight- For This Useful Post: [ View ]
16th September 2012, 07:51 PM   |  #26  
eagleeyetom's Avatar
OP Developer Committee / Senior Moderator / XDA Portal Team
Flag Somewhere in Poland
Thanks Meter: 11,601
 
6,331 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by -DarkKnight-

this should be sticked

Thanks for your comments
If you feel that this guide deserve to be a sticky - report it
16th September 2012, 07:55 PM   |  #27  
Prawesome's Avatar
Senior Member
Flag Error 404- Not found
Thanks Meter: 1,712
 
9,034 posts
Join Date:Joined: Sep 2011
More
Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto
16th September 2012, 10:16 PM   |  #28  
Rick_1995's Avatar
Recognized Developer
Whoville
Thanks Meter: 3,059
 
1,114 posts
Join Date:Joined: Sep 2009
Quote:
Originally Posted by eagleeyetom

To discard all unstaged changes e.g. failed merge etc. type:

Code:
git checkout .
# to delete all changes

git checkout path/to/file
# to discard changes for a specific file

I found it better to use "git reset --hard" if you want to reset the current git project completely, more often you might have extra files lurking around so in a dirty way you could do
Code:
rm -rf ./
git reset --hard
Thanks for a refreshing course in git


Quote:
Originally Posted by Prawesome

Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto

Afaik, -u is only used to set the upstream/remote repository to push/pull from.
Last edited by Rick_1995; 16th September 2012 at 10:19 PM.
The Following User Says Thank You to Rick_1995 For This Useful Post: [ View ]
16th September 2012, 10:23 PM   |  #29  
eagleeyetom's Avatar
OP Developer Committee / Senior Moderator / XDA Portal Team
Flag Somewhere in Poland
Thanks Meter: 11,601
 
6,331 posts
Join Date:Joined: Jan 2011
Donate to Me
More
Quote:
Originally Posted by Rick_1995

I found it better to use "git reset --hard" if you want to reset the current git project completely, more often you might have extra files lurking around so in a dirty way you could do

Code:
rm -rf ./
git reset --hard
Thanks for a refreshing course in git




Afaik, -u is only used to set the upstream/remote repository to push/pull from.

Thanks. I'm going to add this in a free time

Sent from my X8 using xda premium
16th September 2012, 10:51 PM   |  #30  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
6,304 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by eagleeyetom

Thanks for your comments
If you feel that this guide deserve to be a sticky - report it

You could also just pm a mod (ie. Yourself) to do it

Sent from the My Little Pony Official App

Post Reply Subscribe to Thread

Tags
git, github, guide, pull request
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes