Git Bash is used in the example. Sometime you need to change the location of your default Git directory to locate your .ssh keys for easy access. This can be done as follows: Via Git Bash Use git bash to change HOME to C:\Users\ybk.
Read MoreGit squash
Consider your new feature branch is called bugfix. You have done a lot of commits eg. 20 commits to the branch and want to squash all commits to one before merging to main. Standard squash The standard way is like this.
Read MoreRujukan Awam Git dan Github
Global setting Buat git repo dan R pakej Kopi branch di github ke lokal Kopi branch tertentu cara lain Log commit Tidak dapat kesan email Buat kekunci SSH dan daftarkan di Github Pelbagai akaun Permission denied ssh-agent refused operation Buat Repo melalui terminal Padam branch Git Aliases Undo atau Revert Sekiranya ada konflik Release atau tag Buat gh-page git config Tarikh kemaskini: 2022-11-07
Read MoreMerge Selected File
Updated: 24.02.2023 This guide is generally from StackOverflow on how to selectively merge files form one branch to another. Basically it’s: git checkout main git merge --no-ff --no-commit dev Where dev is the branch you want to merge from into the current branch ie.
Read MoreGit Rebase or Reset
Updated: 2023-02-24 Rebase to previous commit of a sepcific branch ie. master can be done in many ways. Probably the article on squash will also be of interest. Standard way git reset --hard origin/master git status or reset to any previous specific commit.
Read More