You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git cherry-pick -n <commit> - по одному черри-пикать коммиты (начиная с самого раннего). -n - это значит не коммитить. Можно будет закоммитить "как надо"
unstage
git reset HEAD -- path/to/file - will remove file from staging (no files deleted)
.gitignore
set * to ignore all, then explicitly add files with !.gitngnore and so on
hint! to add dotfolders you need to type .i3 in root .gitignore, and add .i3/.gitignore with !* content
in first vim text see list of commits; change pick to r to select commits
in second vim text see list of messages to commits - change them
squash
in first vim text see list of commits; change pick to s to select commits, which will be melded with the previous one (e.g. pick on first commit, s on every other)
in second vim text see list of messages to commits - change commits messages
tldr - add additional keys like so: ~/.ssh/id_rsa_custom1, id_rsa_custom1.pub; create ~/.ssh/config and add to it:
Host github.com # for git
HostName github.com
User mygithublogin
IdentityFile ~/.ssh/_id_rsa
IdentitiesOnly yes
Host bitbucket-corporate # for git
HostName bitbucket.org
User mybitbucketlogin
IdentityFile ~/.ssh/id_rsa_corp
IdentitiesOnly yes
Host myserver # for ssh into some server like so `ssh steve.com (instead of ssh steve@steve.com -i ~/.ssh/id_rsa_personal -p 1111)`
HostName steve.com
User steve
Port 1111
IdentityFile ~/.ssh/id_rsa_personal
IdentitiesOnly yes