iyisin, hoşsunda.. 😶
ne o sùrekli benden gitmeler sonra bana dònmeler falan?
-Dalgamı geçiyon?! 😐
ya #Sev yada #Git gelme bee.. 😒
Last week, I shared several ways to edit the author or email of a commit in different scenarios. Today, I'll show a more advanced technique using git interactive rebase! Interactive rebase can be used for many other actions as well, not JUST fixing the author and email. It is worth mentioning that git interactive rebase is a very powerful tool and is essentially used to rewrite your git history. Before you do any kind of rebasing, make sure you aren't impacting a shared/highly collaborative branch (unless your team knows what's happening and is ok with the rebase) and possibly practice a few times on test branches until you are comfortable with the workflow of rebasing!
Interactive rebase is kind of like a rewind and replay workflow. You start with the last "good" commit you know (rewind), and then re-apply the commits one-by-one (replay), making any changes that you missed the first time around or are otherwise necessary.
So... let's say you need to fix the author/email for your last 4 commits. Here's how to use git interactive rebase to fix that:
git rebase -i HEAD~4 - First, we need to rewind back 4 commits. So we initiate the git rebase command with the interactive (-i) flag. Then we pass the PARENT of the last commit we want to edit. In our case that's HEAD~4. 💡Pro tip: It may be easier to remember that the ~4 means you want to edit the last 4 commits, but it's worth noting that you're actually specifying 5 commits ago. Just an FYI 🙂)
Once you run this command, you'll enter text editor mode with lots of options. At the top, you'll see the last 4 commits (commit hash and commit message) you've designated in chronological order. You'll also notice that each commit has the word "pick" before them. These are the commands that will be executed for each commit. If you read the description, you'll see that the "pick" command essentially means "use this commit as-is, make no changes". Since, however, we do want to change something for each commit (the author and email) we should change the "pick" commands to the "edit" commands. (Continued in comments!)...
" Hani bana bir söz verdin ,
Gözlerimi gözlerinle buluşturacaktın.
Elbet bir günde hatırlatırım."
#içimde Bir sen #
#Bana Sen gel#
#bir ihtimal biliyorum#
#unuttun mu beni
#bir çocuk sevdim
#ihanetten geri kalan