You are viewing a single thread.
View all comments
37 points

Slight correction. In case of fire:

Git checkout -b firemyusername Git commit -am=“fire” Git push.

We don’t want to have conflicts with code versions when going in on a rush, better to create a new branch. We can merge all the conflicts afterwards.

permalink
report
reply
2 points

Isn’t that what git stash is for though?

permalink
report
parent
reply
4 points

Can’t push a stash

permalink
report
parent
reply
1 point
*

git push origin refs/stash@{$n}:stash/$USER/$n iirc

permalink
report
parent
reply
1 point

Can’t you? Could’ve sworn you could

I’ve done it with TFS source control at least, thought it would be possible with git

permalink
report
parent
reply
2 points

Oh man I hadn’t seen a git checkout -b in years haha since they introduced switch and restore, never looked back

permalink
report
parent
reply
2 points

I’ll admit I just press the buttons in my favourite IDE and had to look up the commands to remind myself, but yeah.

permalink
report
parent
reply
1 point
*

Gonna need some semicolons or double ampersand in there

permalink
report
parent
reply
2 points

Nah, what I need is doble new lines of code blocks since this is markdown and it fucked the display.

permalink
report
parent
reply
2 points

Here you go:

git checkout -b firemyusername
git commit -am="fire"
git push
permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.9K

    Monthly active users

  • 1.5K

    Posts

  • 34K

    Comments