åå¿è ã®ããã®GitHubå ¥éã®ææ°çã§ã¯ãGitã使ãããªããããã«ãªãããã«æ¬ ãããªãGitã³ãã³ããç´¹ä»ãã¾ãã
GitHub for Beginners ã¸ããããããã®ã·ãªã¼ãºã§ã¯ãåå¿è åãã«ãªãã¸ããªãããã«ãªã¯ã¨ã¹ãã¾ã§ããããããã®ã®åºæ¬ãå¦ã¹ãããã«ãªã£ã¦ãã¾ãã(ããããä½ãªã®ãã¾ã ããããªãï¼å¤§ä¸å¤«ã§ãããã®ããã«ç§ãã¡ã¯ããã«ããã®ã§ãããï¼)
ååã®è¨äºã§ã¯Gitã®åºç¤ã«ã¤ãã¦èª¬æãã¾ããããä»æ¥ã¯ããã«ä¸æ©é²ãã§ãéçºè ãªãç¥ã£ã¦ããã¹ãæãéè¦ãªGitã³ãã³ãã«ã¤ãã¦èª¬æãã¾ãã
æ¯æ¥ä½¿ããã¨ã«ãªã Git ã³ãã³ãã®ããã 12 ãç´¹ä»ãã¾ãããã
- Git ã®è¨å®
ãã·ã³ã«Gitãã¤ã³ã¹ãã¼ã«ããããã¾ãæåã«ãã¹ããã¨ã¯ãGitãããªãã誰ã§ããããç解ã§ããããã«Gitãè¨å®ãããã¨ã§ãã
git config
ã³ãã³ã㧠Git ã®è¨å®å¤ãè¨å®ãããã¨ãã§ããã«ã¹ã¿ãã¤ãºããã Git ã®ã¯ã¼ã¯ããã¼ãä½ãã®ã«å½¹ç«ã¡ã¾ããEã¡ã¼ã«ã¨ã¦ã¼ã¶ã¼åãè¨å®ããã«ã¯ãgit config --global user.name "username"
ã¨git config --global user.email "[email protected]"
ã¨å ¥åãã¾ãããã®äºã¤ã®è¨å®ã«ãã£ã¦ãGitãããªãã®ä½æ¥ãããªãã®ã¦ã¼ã¶ã¼åã¨Eã¡ã¼ã«ã«é¢é£ä»ãããã¨ãã§ããããã«ãªããããªããè¡ã£ãä½æ¥ã®ä¿¡ç¨ãå¾ããã¨ãã§ããããã«ãªãã¾ãã -
Git init
åã«ãè¿°ã¹ãããã«ã
git init
ã³ãã³ãã¯æ°ãã Git ãªãã¸ããªãåæåããããã«ä½¿ãã¾ããGit ã®ã¹ã¤ãããå ¥ãããããªãã®ã ã¨èãã¦ãã ããããã¨ãã°ãã¿ã¼ããã«ã³ãã³ã
mkdir project1
ã§æ°ãããã©ã«ãã¼ãä½ã£ãã¨ãã¾ããããcd project1
ãå®è¡ããã°project1
ã«å ¥ããã¨ãã§ãã¾ããç¾å¨ã®ç¶æ ã§ã¯ãproject1
㯠Git ãªãã¸ããªã§ã¯ããã¾ããããã®ãã©ã«ãã¼ã Git ãªãã¸ããªã«ãã¦ãèªåãè¡ã£ããã¹ã¦ã®å¤æ´ã追跡ã§ããããã«ãããå ´åã¯ã
git init
ã³ãã³ãã§ä½æããã¨ã¤ãªã¢ã¹ “I” ã使ã£ã¦git i
ã¨å ¥åãã¾ããã¨ã¤ãªã¢ã¹ãè¨å®ãã¦ããªãå ´åã¯ãgit init
ã¨å ¥åãããã¨ãã§ãã¾ããæ®éã®ãã©ã«ãã¼ã§
git init
ã³ãã³ããå®è¡ããã¨ããã®ãã©ã«ãã¼ã追跡å¯è½ãª git ãªãã¸ããªã«ãªããGit ã³ãã³ãã使ããããã«ãªãã¾ãã -
Git ã¹ãã¼ã¿ã¹
æ°ãã Git ãªãã¸ããªã§ããã¾ã§ã«ä½ããããã確èªãããå ´åã¯ã
git status
ã¨å ¥åãã¾ãããã®ã³ãã³ãã使ãã¨ãä½æ¥ãã£ã¬ã¯ããªã§è¿½å ã»åé¤ã»å¤æ´ããããã¡ã¤ã«ã確èªãããã¨ãã§ãã¾ãããã®å ´åã¯ãã¾ã ä½ããã¡ã¤ã«ã追å ãã¦ããªãã®ã§ “nothing to commit” ãè¿ãããã¯ãã§ããtouch hello.md
ãå®è¡ãã¦æ°ãããã¡ã¤ã«ãä½æããgit status
ãå度å®è¡ãã¦ã¿ã¾ããããããã§ã”hello.md “ã¨ãã追跡ããã¦ããªããã¡ã¤ã«ããããã¨ããããã¯ãã§ããuntrackedãã¡ã¤ã«ã¨ã¯ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ããã¦ããªããã¡ã¤ã«ã®ãã¨ã§ãããã¡ã¤ã«ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ããã«ã¯ã
git add
ã³ãã³ãã使ãã¾ãã -
Git ã®è¿½å
ãã®ã³ãã³ãã使ãæ¹æ³ã¯ãããªãããããããã¾ãããã¨ãã°ã
git add .
ã使ã£ã¦ä½æ¥ãã£ã¬ã¯ããªãããã¹ã¦ã®ãã¡ã¤ã«ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ããããgit add filename
ã使ã£ã¦ç¹å®ã®ãã¡ã¤ã«ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ããããããã¨ãã§ãã¾ããlearning.py
ã¨ããæ°ãããã¡ã¤ã«ã¨waiting.py
ã¨ããå¥ã®ãã¡ã¤ã«ãä½æããããgit status
ãå®è¡ãã¦å¤æ´å 容ã確èªã§ããããã«ããgit add learning.py
ãå®è¡ãã¦ãã®ãã¡ã¤ã«ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ãã¾ããGit status ãããä¸åº¦å®è¡ããã¨ãlearning.py
ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«ãããwaiting.py
ãä½æ¥ãã£ã¬ã¯ããªã«ã¢ã³ãã©ãã¯ããã¦ãããã¨ããããã¾ãããã¡ã¤ã«ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ãããã¨ãããã¨ã¯ãã³ãããããåã«å®å ¨ãªå ´æã«ç½®ãããã¨ãããã¨ã§ããGit add ã³ãã³ãã使ãã®ã¯ãGit ã«ããã®ãã¡ã¤ã«ãç¾å¨ã®ç¶æ ã§è¿½è·¡ãã¦ããã¦ãã ãããã¨ä¼ããããã ã¨èãã¦ãã ããã
ãã©ãã¯ãããã¡ã¤ã«ã«ããã«å¤æ´ãå ããå ´åã¯ã
git add
ã³ãã³ããããä¸åº¦ä½¿ã£ã¦ Git ã«è¿½è·¡ãããå¿ è¦ãããã¾ããlearning.py
ãã¡ã¤ã«ã«ã³ã¼ãã追å ãã¦ã¿ã¾ããããç¾å¨ã
learning.py
ã¨hello.md
ã®ãã¡ã¤ã«ã¯ã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã§è¿½è·¡ããã¦ãã¾ãããwaiting.py
ã¯è¿½è·¡ããã¦ãã¾ãããlearning.py
ã«code print ("I'm learning git")
ã追å ããã¿ã¼ããã«ã§git status
ãå®è¡ããã¨ãlearning.py
ãã¡ã¤ã«ãå¤æ´ããã追跡ããã¦ããªãå¤æ´ããããã¨ããããã¾ãããããã®æ°ããå¤æ´ã追跡ããã«ã¯ãgit add learning.py
ãå®è¡ãã¾ããç¾å®ã®ä¸çã§ã¯ãé常ã
learning.py
ãã¡ã¤ã«ã§è¡ã£ã¦ããä½æ¥ãå®äºãããã®å¤æ´ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ãã¾ããèªåã®ä½æ¥ã«æºè¶³ããããå¤æ´ãã³ããããã¾ãã -
Git ã®ã³ããã
å¤æ´ããã³ãããããããã¨ã¯ãGit ã®å±¥æ´ã«ããã¸ã§ã¯ãã®ãã¼ã¸ã§ã³ãä¿åãããã¨ã§ãã
ç¾å¨ã
learning.py
ã¨hello.md
ã¯è¿½è·¡ããã¦ãããwaiting.py
ã¯è¿½è·¡ããã¦ãã¾ãããgit commit -m "initial commit"
ãå®è¡ãã¦ä½ãèµ·ãããè¦ã¦ã¿ã¾ããããgit status
ãå®è¡ããã¨ã”2 files changed, 1 insertion in git” ã¨è¡¨ç¤ºããã¾ããæ°ãããã¡ã¤ã«ããµãã¤è¿½å ããããã®ãã¡ã®ã²ã¨ã¤ã«ã³ã¼ããä¸è¡è¿½å ãããããã§ããã¾ããwaiting.py
ã¨ãã追跡ããã¦ããªããã¡ã¤ã«ããããã¨ããããã¾ãããã®ãã¡ã¤ã«ã¯ã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ããã¦ããªãããã§ããlearning.py
ãã¡ã¤ã«ã«æ°ããå¤æ´ãå ããå ´åãgit add. git commit -m "add waiting file and new function"
ã³ãã³ããå®è¡ãããã¨ã§ã両æ¹ã®ãã¡ã¤ã«ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ãããã¨ãã§ãã¾ãããããã
git add
ã¨git commit
ã³ãã³ããä¸ç·ã«ä½¿ãæ¹æ³ã§ãï¼å¤æ´ã追跡ããæ°ããä½æ¥ãä¿åãããã¨ãã§ãã¾ããã -
Git ã¯ãã¼ã³
ãªã¢ã¼ãã«ãããã©ã«ãã®ãªã³ã¯ãã©ãããããã«åãè¾¼ãå¿ è¦ãããã¨ãããã©ããã¾ããï¼ã©ããã£ã¦ããããã¾ããï¼ãªã¢ã¼ããªãã¸ããªããã¼ã«ã«ãã·ã³ã«ã³ãã¼ããå¿ è¦ãããã¾ããGit ã®ä¸çã§ã¯ãããããã¯ãã¼ã³ãã¨å¼ã³ã¾ããã¯ãã¼ã³ãä½æããã³ãã³ãã¯ããåç¥ã®ããã«
git clone
ã§ããGit ã§å ±åä½æ¥ããã¦ãããã¼ã ã§åãã¦ããã¨ãGit ã使ã£ã¦ããã¸ã§ã¯ããã©ã«ãã¼ã®ã³ãã¼ãä½ã£ã¦å¤æ´ãå ããããã«æ±ãããããã¨ãããã¾ãã
ãã¨ãã°ãGitHub ã«ãªã¢ã¼ããªãã¸ããªãããã¨ãã¾ãããããã®ãªãã¸ããªãèªåã®ãã·ã³ã«ã³ãã¼ãããã¯ãã¼ã³ãããããã«ã¯ãç·ã® “Code” ãã¿ã³ãã¯ãªãã¯ããHTTPS ã¨ãããªãã·ã§ã³ãé¸æãã¾ããã³ãã¼ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦ãªãã¸ããªã¸ã®ãªã³ã¯ãã³ãã¼ããã¿ã¼ããã«ãéãã¦ã
git clone
ãã¨å ¥åããURLãªã³ã¯ãã¿ã¼ããã«ã«è²¼ãä»ãã¦ã¨ã³ã¿ã¼ï¼ãªã¿ã¼ã³ãã¼ãæ¼ãã¾ãããå®äºãã¨è¡¨ç¤ºããããããªãã¸ããªãããªãã®ãã·ã³ã«ã¯ãã¼ã³ã§ãã¾ãããããã§ããªã¢ã¼ããªãã¸ããªã®ãã¼ã«ã«ã³ãã¼ãæã«å ¥ããä½æ¥ãç·¨éãã§ããããã«ãªãã¾ããã
-
Git ã®ãã§ãã¯ã¢ã¦ã
Git ãªãã¸ããªã®ãã©ã³ãã¯ãããã¥ã¡ã³ãã®ã³ãã¼ãä½ããããªãã®ã§ãããã©ã³ãã使ããã¨ã§ãåãããã¸ã§ã¯ãã«åå ãã¦ãããã¼ã ã¡ã¤ãã¨ã®å ±åä½æ¥ãããå¹ççã«é²ããããããã«ãªãã¾ãã
ããã§ã¯ãã¯ãã¼ã³ãããªãã¸ããªã«æ°ãããã©ã³ããä½ã£ã¦ã¿ã¾ãããã
git checkout -b update-name
ã¨å ¥åããã¨ãupdate-name
ã¨ããæ°ãããã©ã³ããä½æãããããã«å¤æ´ãå ãããã¨ãã§ãã¾ãããã®ã³ãã³ãã使ãã¨ãæ°ãããã©ã³ãã®ä½æã¨ãã©ã³ãã®åãæ¿ããåæã«è¡ããã¨ãã§ãã¾ãã -
Git ãã©ã³ã
git branch
main
ãã©ã³ããinit ã¨ããååã®ãã©ã³ããããã¦æ°ããä½æãã ãã©ã³ãã§ãããã¼ãã¼ãã® q ãã¼ãæ¼ãã¦çµäºãã¾ããupdate-name
-
Git ã®åãæ¿ã
ãã¦ãã¡ã¤ã³ãã©ã³ãã«æ»ãããå ´åã¯ã©ãããã°ããã®ã§ãããï¼
git switch
ã³ãã³ãã使ãã¾ããã¿ã¼ããã«ã§git switch main
ã¨å ¥åããã¨ãã¡ã¤ã³ãã©ã³ãã«æ»ããã¨ãã§ãã¾ããããã§ã¡ã¤ã³ãã©ã³ãã«æ»ãã¾ãããä½æãããã©ã³ãã«æ»ã£ã¦ããã¡ã¤ã«ã«å°ãå¤æ´ãå ãã¦ã¿ã¾ãããã
git switch update-name
ã¨å ¥åãã¦ãã³ã¼ãã¨ãã£ã¿ã§ããã¸ã§ã¯ããéãã¾ããindex.html
ãã¡ã¤ã«ã«ç§»åãããã¡ã¤ã«ãå³ã¯ãªãã¯ãã¦open preview
ãé¸æãã¾ããããã§ãµã¤ããã©ã¦ã¶ã¼ãéããã³ã¼ãã«åæ ãããå¤æ´ãè¦ããã¨ãã§ãã¾ãããã®ã¢ããªã®ã¿ã¤ãã«ã “Git Going “ã«å¤æ´ãããã¨ã«ãªã£ãã¨ãã¾ããããHTMLãã¡ã¤ã«ã®ååãæ´æ°ãã
git status
ãå®è¡ãã¦ãã¡ã¤ã«ãå¤æ´ãããã確èªãã¾ããå ã»ã©å¦ãã ãã¨ãå®è·µãã¦ããããã®å¤æ´ãã¹ãã¼ã¸ã³ã°ã¨ãªã¢ã«è¿½å ããå¤æ´ããã¼ã«ã«ãªãã¸ããª
git add . git commit -m "update app name" git status
ã«ã³ããããã¾ãã次ã«ãå ã»ã©ã¯ãã¼ã³ãããªã¢ã¼ããªãã¸ããªã«ãã¼ã«ã«ã®å¤æ´ãåãè¾¼ãã§ã¢ããªãæ´æ°ãã¾ãã -
Git ã®ããã·ã¥
å ã»ã©è¡ã£ãå¤æ´ããªã¢ã¼ããªãã¸ããªã«åãè¾¼ãã«ã¯ãå¤æ´ããªã¢ã¼ããªãã¸ããªã«ããã·ã¥ããå¿ è¦ãããã¾ãã
ã³ãã³ã
git push
㯠Git ã«ããã¡ã¤ã«ã®å¤æ´ã追跡ãã¦ããã¦ãããã¨ãããã®å¤æ´ãã¡ã¤ã³ããã¸ã§ã¯ãã®ãã¡ã¤ã«ã«ã¢ãããã¼ããã¾ããã ã¨ä¼ãã¾ããå¤æ´ãããã·ã¥ããã¨ãããã¨ã¯ãè¦ããã«ããã¼ã«ã«ãªãã¸ããªã§è¡ã£ãã³ãããããªã¢ã¼ããªãã¸ããªã«åæ ãããã¨ãããã¨ã§ãããããè¡ãã«ã¯ã
git push <remote> <branch>
ã¨ããã³ãã³ãã使ãã¾ãã”remote” ã¯ãªã¢ã¼ããªãã¸ããªã”branch” ã¯ä½æ¥ä¸ã®ãã©ã³ãã表ãã¾ããããªãã®å ´åã¯ã
git push origin update-name
ã¨å ¥åãã¾ãã”origin” ã¯ããªã¢ã¼ããªãã¸ããªããæãã”update-name” ã¯ã¢ãããã¼ãããããã©ã³ããæãã¾ããGitHub ã®ãªãã¸ããªã«æ»ãã¨ãæ°ãããã©ã³ãã追å ããã¦ãããã¨ããããã¾ããããããGit push ã¨å¼ã°ããæ以ã§ãï¼
ããã§ãGitHub ã§ãã«ãªã¯ã¨ã¹ããçºè¡ãã¦èªåã®å¤æ´ãã¡ã¤ã³ãã©ã³ãã«ãã¼ã¸ã§ããããã«ãªãã¾ããããã«ãªã¯ã¨ã¹ãã¨ã¯ããããã©ã³ãã®å¤æ´ãå¥ã®ãã©ã³ãã«ãã¼ã¸ãããã¨ããææ¡ã®ãã¨ã§ããããªãã®å ´åã¯ãæ´æ°ããååãã¡ã¤ã³ãã©ã³ãã«ãã¼ã¸ãããã¨ãã¾ãã
-
Git ã® ãã«
git pull
ã¯ããã¼ã«ã«ãªãã¸ããªã¨ãªã¢ã¼ããªãã¸ããªã常ã«ææ°ã®ç¶æ ã«ä¿ã¤ããã«å®è¡ããéè¦ãªã³ãã³ãã§ãããªã¢ã¼ããªãã¸ããªã®ã¡ã¤ã³ãã©ã³ããå¤æ´å 容ã§æ´æ°ãããããã¼ã«ã«ãªãã¸ããªã«æ»ãã¾ãããã
ã¿ã¼ããã«ã§
git switch main
ã¨å ¥åããã¨ãã£ã¿ã¼ã§ãã¡ã¤ã«ãéãã¾ããindex.html
ãã¡ã¤ã«ã«ç§»åããã¢ããªã®ååã確èªãã¾ããã¡ã¤ã³ãã©ã³ããæ°ããååã§æ´æ°ããã«ãããããããã¢ããªã®ååã¯ãTodoãã®ã¾ã¾ã§ããã§ã¯ãä½ãèµ·ãã£ãã®ã§ããããï¼ãªã¢ã¼ããªãã¸ããªã®ã¡ã¤ã³ãã©ã³ããæ´æ°ããã®ã§ãã£ã¦ããã¼ã«ã«ã®ã³ãã¼ãæ´æ°ããã®ã§ã¯ãªãã¨æã£ããªãããã®ã¨ããã§ãããã¼ã«ã«ãªãã¸ããªã¯ãªã¢ã¼ããªãã¸ããªã®ã³ãã¼/ã¯ãã¼ã³ã§ãããããããã®ãã©ã³ãã«ã¯ç¬èªã®å±¥æ´ããããã¨ãè¦ãã¦ããã¦ãã ããããã¼ã«ã«ãã©ã³ã
update-name
ã§å¤æ´ãè¡ãããªã¢ã¼ããªãã¸ããªã«ããã·ã¥ããã®ã§ããã¼ã«ã«ã§ãåããã¨ãè¡ããmain
ãã©ã³ãã®ãã¼ã«ã«ã³ãã¼ã«å¤æ´ããã¼ã¸ããå¿ è¦ãããã¾ãããã¼ã«ã«ãã©ã³ãããªã¢ã¼ããã©ã³ãã¨æ´æ°ããã«ã¯ã
git pull
ã³ãã³ãã使ç¨ãã¾ãããã®ã³ãã³ãã¯ãè¡ããããã¹ã¦ã®å¤æ´ãåå¾ãããã¼ã«ã«ãã©ã³ãã«ãã¼ã¸ãã¾ããã¿ã¼ããã«ã®ã¡ã¤ã³ãã©ã³ãã§ã
git pull
ãå®è¡ãã¦ãã ãããããã§ãã©ã³ããæ´æ°ãããå¤æ´ç¹ãè¿ããã¾ããããã¨ã1 ã¤ã®ãã¡ã¤ã«ãå¤æ´ããã1 ã¤ã®æ¿å ¥ã¨ 1 ã¤ã®åé¤ãè¡ããããã¨ããããã¾ãã -
Git ã·ã§ã¦
ãã¦ãããããã®å¤æ´ãè¡ãã¾ãããããã¾ã§ã«è¡ã£ããã¹ã¦ã®ä½æ¥ãã©ããã£ã¦è¨é²ããã®ã§ããã?
ããã§ã
git show
ã³ãã³ãã®åºçªã§ããGit show ã使ãã¨ãä»ãããã©ã³ãã§è¡ã£ãå¤æ´ãè¦ããã¨ãã§ãã¾ããããã¸ã§ã¯ãã®å±¥æ´ãè¦ãã«ã¯æé©ãªæ¹æ³ã§ããã¿ã¼ããã«ã§
git show
ãã¡ã¤ã³ãã©ã³ãã§å®è¡ãã¾ããããã«ã¯ããããã®æ å ±ãããã¾ãï¼- ã³ããã ID (sha ã¨å¼ã°ãã¾ã)
- ã³ãããã¡ãã»ã¼ã¸ã®ä½è ãæå»ãæ¥ä»
- ã³ãããã¡ãã»ã¼ã¸ãã®ãã®
- ãã¡ã¤ã«ã«å ããããå®éã®å¤æ´å 容
GitHub ããã¼
ããã§ããããã§ãã·ã§ãã«ã¨ã㦠git ãæ±ãããã®ååãªæºåãæ´ãã¾ããããããã®ã³ãã³ããç·´ç¿ãããã¨ã§ãããªãã¯ããå¹æç㪠Git ã¦ã¼ã¶ã¼ã¨ãªãã§ããããããã¦ããããç§ãã¡ã GitHub ããã¼ã¨å¼ãã§ãããã®ã«ã¤ãªãã£ã¦ããã¾ãã
GitHub ããã¼ã¨ã¯ã誰ã§ã使ãããã©ã³ããã¼ã¹ã®ã¯ã¼ã¯ããã¼ã§ããã¤ã¾ãããªãã¸ããªã§ä½æ¥ããã¨ãã¯ãã¤ã§ã GitHub ããã¼ã«å¾ãã¨ãããã¨ã§ãï¼
ãªãã¸ããªãã¯ãã¼ã³ããæ°ãããã©ã³ããä½æãããã®ãã©ã³ãã«å¤æ´ãå ããGitHub ã«ããã·ã¥ãããã«ãªã¯ã¨ã¹ãããªã¼ãã³ãã¾ãããé常ãã®æ®µéã§ã¯ãèªåãè¡ã£ãä½æ¥ã«ã¤ãã¦ãã¼ã ã¡ã¤ãã«ãã£ã¼ãããã¯ãæ±ããã³ã¡ã³ãã«å¯¾å¿ãã¾ããããã¦ãã«ãªã¯ã¨ã¹ããã¡ã¤ã³ãã©ã³ãã«ãã¼ã¸ããèªåã®ãã©ã³ããåé¤ãã¾ãã
GitHub ããã¼ã®æçµæ®µéã¨ãã¦ããã©ã³ããåé¤ãã¦ã¿ã¾ãããããã©ã³ããåé¤ããã³ãã³ãã¯git branch -d update-name
ã§ãããã¯ãã¼ã«ã«ã§ãã©ã³ããåé¤ãã¾ãããªã¢ã¼ãã§ãã©ã³ããåé¤ããã«ã¯æ¬¡ã®ã³ãã³ããå®è¡ãã¾ããgit push âdelete origin update-name
ã§ããªã¢ã¼ããªãã¸ããªã®ãã©ã³ããåé¤ãã¾ãã
ããã GitHub ã®ããã¼ã§ãã
ã¾ã¨ã
éçºè ã¨ãã¦æ¯æ¥ä½¿ããã¨ã«ãªã Git ã®å¿ é ã³ãã³ãã 12 åå¦ã³ã¾ãããGitHub ã®ããã¼ãè¦ãªãããå¦ãã ã³ãã³ããç·´ç¿ãã¦ããã¾ããããä½ã質åããã£ã¼ãããã¯ãããã°ãGitHub ã³ãã¥ããã£ã¼ã®ã¹ã¬ããã«æ¸ãè¾¼ãã§ãã ããï¼
以ä¸ã®ãªã½ã¼ã¹ã使ã£ã¦ãGit ã®ã¹ãã«ãç·´ç¿ãç¶ãã¾ãããï¼
- Git ãã¼ãã·ã¼ã
- GitHub ã¹ãã«
- GitHub å ¥é
- GitHubã®åºç¤ãã©ã¼ãã³ã°ã³ã¬ã¯ã·ã§ã³
The post Top 12 Git commands every developer must knowãappeared first onãThe GitHub Blog.