last day (75 days later) » 

user456814
3:13 AM
Oh hi.
 
user456814
You ran git log --oneline --graph --decorate from the terminal, yes?
 
hi, ok, so looking at the command line in which i ran the command that you suggested, it seems that
yeah, i ran that.
but not sure how to read it
 
user456814
It's a graphical representation of your commits.
 
i'm trying to figure it out ... and guessing that based on the first line, which says something along the lines of
 
user456814
Is there any sensitive info in the messages?
 
3:14 AM
not really, but it's a private account
 
user456814
Well if there's nothing in there that you don't mind showing publicly, it would help to get a copy/paste of the first like 10 lines of output.
 
user456814
Or just
 
user456814
dump it into an editor and redact the messages first.
 
user456814
It's the graph that counts.
 
hm.
what do you mean that it's the graph that counts?
 
user456814
3:16 AM
Hold on, I'm going to see if I can get you an example...
 
that by the way is the first line ...
 
user456814
...
 
user456814
Oh.
 
sorry, just deleted it.
 
user456814
$ git elog -10
* 1b7f496 Add alias for Dr Java to Bash config (OS X) (HEAD, origin/master, origin/HEAD, master)
* 475593a Add global .gitignore file for OS X
* 7668f34 Modify Bash config to use Homebrew recommended PATH
* 03fa071 Set `push.default` to `simple`
* 00ddaac Add symlinks for executables
* 8023de5 Add Bash alias "procs" for `ps aux`
* 6503714 Set Sublime Text Rails HTML config to use 2-indent tabs
* 37f3d09 Set Sublime Text Ruby config to use 2-space tabs
 
user456814
3:17 AM
Perfect
 
but the point is that ... i don't need to worry since the branch is not yet merged into the master, it's a easy thing to fix ... right? relatively speaking.
 
user456814
Well it depends on how you want to fix it.
 
user456814
You can either...
 
user456814
1. Force push.
 
um ... okkkk .... (this is based on your previous comment of all those lines)
isn't that bad thing to do?
 
user456814
3:19 AM
2. Revert the accidental commits, or
3. Delete the branch.
 
what is force push anyway?
oh!
how to i revert accidental commits?!?!?!?!?!
that would be truly awesome!
 
user456814
Do you know what the commit shas IDs are for the commits that you accidentally pushed?
 
no
how do i look for them?
by the way, i did this in GitBox ...
 
user456814
Right :/
 
user456814
I'm actually not at all familiar with GitBox :(
 
3:21 AM
well ... sorry!
oh
ok,
 
user456814
I can help you from the command line, if you're willing to go with that...
 
all right ... how would you do this from command line
yeah ...
 
user456814
Let me look up the command...
 
let's do it. i'm totally game. after all, can my friday possibly be any worse?
sorry ... didn't mean it that way. thank you so much for helping! =)
 
user456814
No worries, I get it, just glad to help! ;)
 
user456814
3:23 AM
Okay, so you basically want something along the lines of...
 
user456814
git revert <commits>
 
user456814
But it depends on what your graph looks like.
 
user456814
 
user456814
We should really take a look at that graph of yours.
 
user456814
You can remove the messages and sha IDs before you post it, if you want.
 
user456814
3:24 AM
When you paste it in, do select all, then CTRL+K to format it.
 
user456814
Grab like the first 10 lines or so.
 
when you say remove the sha IDs, and messages ... all that's left is the lines and stars ... is that what you wanted?
 
user456814
Well, it would help if the stars were still labeled. Add letters to them, like A and B, etc.
 
hm ... not sure how to label them.
* (HEAD, origin/name_of_branch, master) Merge branch 'name_of_branch' of github.com:yada_yada (think this is where my mistake happened)
|\
| *
| *
| *
 
user456814
Ok, that still helps, let me look this over a bit...
 
user456814
3:30 AM
Oh, by the way, do you have notifications turned on for this room?
 
user456814
Sound notifications I mean.
 
no ... i don't even know how to do that ... oh sound notifications ... no.
 
user456814
Okay, hold on a sec...
 
it's ok, you know ... it's kinda getting too much.
the main thing is that ... it didn't merge with the main branch, oui?
so ... if the other person isn't too mad at me by Monday, hopefully the whole situation can be resolved ...
 
user456814
 
3:33 AM
yeah ... it won't help to turn it on since i'm at a super noisy place, ie, coffeeshop
 
user456814
Ok, no problem.
 
user456814
So, I looked over the graph, and it's not clear to me which commits are the ones that contain mistakes.
 
the first one?
the one on the top?
all others are fine.
 
user456814
Are you sure?
 
i think ...
what i'm puzzled
is
that it says "Merge branch" ...
so ... reading that ...
it means it hasn't yet, right?
 
user456814
3:36 AM
* (HEAD, origin/name_of_branch, master) Merge branch 'name_of_branch' of github.com:yada_yada
 
yeah.
sequential, so to speak ...
so, i've only done one thing today, and it's that.
i mean, it's in order, right?
 
user456814
Yes, it should be in order.
 
user456814
The last thing you did was a merge?
 
haven't done anything else yet since i was terrified of making of bigger mess.
yeah
i pushed by accident via Gitbox
 
user456814
Well, push is not the same thing as a merge :/
 
3:38 AM
cause it was giving me a headache with all those merge conflicts, yada yada, so, I was fiddling trying to resolve it, and pushed it.
it's not?
 
user456814
No.
 
oh
ok
oh,yeah, of course, merge is not same as push ... merge means it's merged into the master branch,
right?
 
user456814
Right.
 
user456814
Is that what you wanted to do?
 
NO!!
but that hasn't happened yet
Was trying to get out my push
 
user456814
3:40 AM
According to the top line of the graph, something was merged into something, no?
 
yeah, it was merged into a branch that's not merged into the master branch itself.
 
user456814
Hmm, I'm not sure if I have enough information to be able to help you.
 
on the top of the branches page, it says "Showing number branches not merged into master. "
 
user456814
Maybe it would be better to wait for your coworker's help on Monday?
 
Yeah, I think so too.
 
user456814
3:41 AM
Ok, sorry!
 
user456814
Good luck!
 
But thank you so much for your attempt!
I super appreciate it!
Have a good Friday!
 
user456814
No problem, good night!
 
Night!
 

  last day (75 days later) »