์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Absolute
- AGI
- ai
- AI agents
- AI engineer
- AI researcher
- ajax
- algorithm
- Algorithms
- aliases
- Array ๊ฐ์ฒด
- ASI
- bayes' theorem
- Bit
- Blur
- BOM
- bootstrap
- canva
- challenges
- ChatGPT
- Today
- In Total
A Joyful AI Research Journey๐ณ๐
Git, Mac) ์ด๋ฏธ ์ปค๋ฐํ Committer ์ด๋ฆ ์ผ๊ด๋ก ํ ๋ฒ์ ๋ณ๊ฒฝํ๊ธฐ ๋ณธ๋ฌธ
Git, Mac) ์ด๋ฏธ ์ปค๋ฐํ Committer ์ด๋ฆ ์ผ๊ด๋ก ํ ๋ฒ์ ๋ณ๊ฒฝํ๊ธฐ
yjyuwisely 2023. 6. 9. 23:15์ฒ์์ ํฐ๋ฏธ๋์์ ๊นํ๋ธ ์์ด๋, ๋น๋ฐ๋ฒํธ ์ค์ ํ ๋
๊นํ๋ธ์์ ๋ฐ๊ธ๋ฐ์ ํด๋์ ํ ํฐ(Tokens(Classic))์ ๋น๋ฐ๋ฒํธ๋ก ์ฌ์ฉํ๋ค.
1) ํด๋ ๊ฒฝ๋ก๋ฅผ ์ง์ ํด ์ฃผ๊ณ
์์) cd /Users/yeongjinyu/Documents/github
2) git clone์ ํ๋ค.
์์) git clone https://github.com/yjyuwisely/Traveling-from-Ulju-gun.git
git clone ๊น์ฃผ์
3) ํด๋ ๊ฒฝ๋ก๋ก ๋ค์ด๊ฐ๋ค.
์์) cd /Users/yeongjinyu/Documents/github/Traveling-from-Ulju-gun
4) ํฐ๋ฏธ๋์์ ํ๋จ์ ์์๋๋ก ์
๋ ฅํ๋ค.
๋ณธ์ธ์ ๊นํ๋ธ ์์ด๋์ ์ด๋ฉ์ผ์ ๋ฃ๊ณ Branch ์ด๋ฆ์ ๋์๋ค๊ฐ ์ ๋๋ค.
4.1)
git filter-branch --env-filter "GIT_AUTHOR_NAME='๊นํ๋ธ์์ด๋'; GIT_AUTHOR_EMAIL='๊นํ๋ธ์ด๋ฉ์ผ'; GIT_COMMITTER_NAME='๊นํ๋ธ์์ด๋'; GIT_COMMITTER_EMAIL='๊นํ๋ธ์ด๋ฉ์ผ';" ๋ธ๋์น์ด๋ฆ
์์) git filter-branch --env-filter "GIT_AUTHOR_NAME='yjyuwisely'; GIT_AUTHOR_EMAIL='yjyuwisely@gmail.com'; GIT_COMMITTER_NAME='yjyuwisely'; GIT_COMMITTER_EMAIL='yjyuwisely@gmail.com';" master
(์ค๋ณต ๋๋ฌธ์ overwriteํ ๊ฒฝ์ฐ ์์ -f๋ฅผ ๋๋ค.
์์) git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yjyuwisely'; GIT_AUTHOR_EMAIL='yjyuwisely@gmail.com'; GIT_COMMITTER_NAME='yjyuwisely'; GIT_COMMITTER_EMAIL='yjyuwisely@gmail.com';" master)
์ ์ฌ์ฉํ๋ค.)
๋ง์ฝ ๋ธ๋์น ๋ฒ์ ์ด ์ฌ๋ฌ๊ฐ๋ผ๋ฉด ํ๋จ์ ์ฌ์ฉํ๋ค.
์์) git filter-branch --env-filter "GIT_AUTHOR_NAME='yjyuwisely'; GIT_AUTHOR_EMAIL='yjyuwisely@gmail.com'; GIT_COMMITTER_NAME='yjyuwisely'; GIT_COMMITTER_EMAIL='yjyuwisely@gmail.com';" -- --all
4.2) ํ๋จ์ ์ฝ๋๋ฅผ ์
๋ ฅํ๋ค. ์์ ์ branch ์ด๋ฆ์ผ๋ก ์์ ํ๋ค.
์์) git push --force origin master
5) ์๋ฃ!
๊นํ๋ธ์ Repository์ Committer์ ์ด๋ฆ์ด ์ง์ ํ ํ ๊ฐ๋ก ๋ณ๊ฒฝ๋ ๊ฒ์ ์ ์ ์๋ค.
https://blogs.sap.com/2019/07/12/how-to-clone-a-github-repository-to-local-mac-computer/
How to clone a GitHub repository to local mac computer | SAP Blogs
0 2 198,388 During development of Node.JS, you may need to clone a GitHub reposity to local mac computer. A repository on GitHub is a remote repository. You can clone the repository to your mac computer in order to create a local copy and sync between the
blogs.sap.com
[Git] ์ด๋ฏธ ํธ์๋ ์ปค๋ฐ๋ค์ ์์ฑ์(Author) ์ผ๊ด ๋ณ๊ฒฝํ๊ธฐ (feat. GitHub ์๋ ๋๋ฝ)
1. GitHub Contribution (feat. GitHub ์๋) Git๊ณผ GitHub์ ์ฌ์ฉํด๋ณธ ๊ฐ๋ฐ์๋ผ๋ฉด ๋ถ๋ช Git ์ ์ฅ์ ์์ฑ ํน์ ์ปค๋ฐ ๋ฑ์ ๊ธฐ๋ก์ด GitHub Contribution์ด๋ผ๋ ํํ๋ก GitHub์ ๊ธฐ๋ก๋๋ ๊ฒ์ ๋ณธ ์ ์์ ๊ฒ์ด๋ค. Contributio
it-eldorado.tistory.com
์์ด๋ณด! Github ์ฌ์ฉ๋ฒ (Mac os)
๊ฐ๋ฐ์ ์ฒ์ ๋ฐฐ์ฐ๋ฉด์ ๊ฐ์ฅ ์ด๋ ค์ ๋ ๊ฑด ์์ค์ฝ๋๋ฅผ ๊ด๋ฆฌํ๋ ๊ฒ์ด์๋ค. ๋น ์ ๊ณต์์๋ ๋๋ ๊ตฌ๊ธ์ ์ฌ๋ผ์ ์๋ ๋ง์ Github ๊ด๋ จ ๋ธ๋ก๊ทธ๋ฅผ ๋ดค์ง๋ง ๋๋์ฒด ๊ฐ๋ฐ์๋ค์ ์ฌ์ด ๋ง๋ ์ ์ด๋ ต๊ฒ ํ๋
sin0824.tistory.com
https://syki66.github.io/blog/2020/12/30/git-change-committer-date.html
[git filter-branch] ๊น, COMMITTER_DATE ๋ณ๊ฒฝํ๊ธฐ - syki66 blog
git rebase, git cherry-pick, git reset ๋ฑ์ ์ด์ฉํ์ฌ ๊ณผ๊ฑฐ ์ปค๋ฐ์ ์์ ํ๊ณ , github์ push ํ ํ์คํ ๋ฆฌ๋ฅผ ๋ณด๊ฒ๋๋ฉด ์๋์ ๊ฐ์ด ์ปค๋ฐ์ด ์์ ์๊ฐ ๊ธฐ์ค์ผ๋ก ๋ฐ๋์ด์๋ค. COMMITTER_DATE ๊ฐ์ด ์์ ์๊ฐ์ผ๋ก ๋ณ๊ฒฝ
syki66.github.io
git rebase -i <commit_hash> -x "git commit --amend --reset-author -CHEAD"
git rebase -i 5282e95941ee89355c6f9b8e5fc8ee8d69fc88df -x "git commit --amend --reset-author -CHEAD"
git rebase -i --root -x "git commit --amend --reset-author -CHEAD"