FORUMS

OnePlus Addresses Reservation List Cheating

Jake Cooper figured out how to bump his place up on OnePlus’ reservation list and … more

OnePlus 2 Benchmark Scores Show Its Muscle

This video by FoneArena contains all the popular benchmarks being tested on the OnePlus 2, … more

Sony’s Emergence in The Middle: Is The Price Right?

Sony’s Electronics Division is not in its best days, and its smartphone … more

HTC Delivering Ads Straight to Sense Home

HTC’s 2015 has been a year marked by a desperate search for revenue.The HTC One M9 … more

[Guide] How to use Github

6,751 posts
Thanks Meter: 12,615
 
By eagleeyetom, Developer Committee / XDA Portal Team on 8th September 2012, 08:32 PM
Post Reply Subscribe to Thread Email Thread
16th September 2012, 04:53 PM |#21  
mdfzhi's Avatar
Senior Member
Thanks Meter: 3,829
 
More
wow nice tutorial mr tomek bookmarked!
 
 
16th September 2012, 05:09 PM |#22  
mstfkaratas's Avatar
Senior Member
Flag Istanbul
Thanks Meter: 135
 
More
very good tutorial, you can expand it with repo and gerrit guide.
16th September 2012, 05:55 PM |#23  
cowsquad's Avatar
Senior Member
Flag Portland, Oregon
Thanks Meter: 304
 
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, 06:17 PM |#24  
lippol94's Avatar
Retired Recognized Developer
Flag Cremona
Thanks Meter: 2,657
 
Donate to Me
More
This thread is fracking useful!!
Thank you so much!

16th September 2012, 06:40 PM |#25  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
More
this should be sticked
The Following 2 Users Say Thank You to -DarkKnight- For This Useful Post: [ View ]
16th September 2012, 06:51 PM |#26  
eagleeyetom's Avatar
OP Developer Committee / XDA Portal Team
Flag Gdańsk
Thanks Meter: 12,615
 
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, 06:55 PM |#27  
Prawesome's Avatar
Senior Member
Flag Error 404- Not found
Thanks Meter: 1,726
 
More
Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto
16th September 2012, 09:16 PM |#28  
Rick_1995's Avatar
Recognized Developer
Whoville
Thanks Meter: 3,060
 
More
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 09:19 PM.
The Following User Says Thank You to Rick_1995 For This Useful Post: [ View ]
16th September 2012, 09:23 PM |#29  
eagleeyetom's Avatar
OP Developer Committee / XDA Portal Team
Flag Gdańsk
Thanks Meter: 12,615
 
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, 09:51 PM |#30  
-DarkKnight-'s Avatar
Senior Member
Flag Gotham
Thanks Meter: 1,233
 
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
16th September 2012, 10:03 PM |#31  
sert00's Avatar
Senior Member
Flag cesena,IT
Thanks Meter: 505
 
More
oh my god man,it's what i'm looking for in last weeks!i'm beginning with compiling rom but not familiar with github and this,should make things be more easy for me,and sure for many many others people!thank you very much!appreciated!rated 5 stars and thanked!

Read More
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