반응형
Git branch
Clone creation
oss67820@LAPTOP-AN5FTPBK:
~$ clear
oss67820@LAPTOP-AN5FTPBK:~
$ mkdir os2022
mkdir: cannot create directory ‘os2022’: File exists
oss67820@LAPTOP-AN5FTPBK:
~$ dir os2022
oss67820@LAPTOP-AN5FTPBK:~
$ cd os2022
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git clone [https://github.com/ghpk98/OS-Term-Project.git](https://github.com/ghpk98/OS-Term-Project.git)
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
https://jootc.com/p/201905122828
problem : Access token creation : Access for OS_TP
Please note that TOKEN cannot be re-read.
https://victorydntmd.tistory.com/91
Branch creation
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git branch brchSONoss67820@LAPTOP-AN5FTPBK:~/os2022$ git branch brchSON
fatal: Not a valid object name: 'master'.
problem : commit more than once
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git config --global user.name oss67820
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git branch brchSON
fatal: Not a valid object name: 'master'.
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git commit -m "Initial commit"
\*\*\* Please tell me who you are.
Run
git config --global user.email "[you@example.com](mailto:you@example.com)"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <oss67820@LAPTOP-AN5FTPBK.localdomain>) not allowed
problem : git connect
oss67820@LAPTOP-AN5FTPBK:
~/os2022$ git config --global user.email [oss67820@naver.com](mailto:oss67820@naver.com) oss67820@LAPTOP-AN5FTPBK:~
/os2022$ git config --global user.name oss67820 oss67820@LAPTOP-AN5FTPBK:~/os2022$ git branch brchSON\`
`fatal: Not a valid object name: 'master'.`
\`\`\`oss67820@LAPTOP-AN5FTPBK:~/os2022$ git add .
warning: adding embedded git repository: os2022/OS-Term-Project
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add os2022/OS-Term-Project
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached os2022/OS-Term-Project
hint:
hint: See "git help submodule" for more information.
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git commit -m "Initial commit"
\[master (root-commit) 4acf2b0\] Initial commit
1 file changed, 1 insertion(+)
create mode 160000 os2022/OS-Term-Project
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git branch brchSON
oss67820@LAPTOP-AN5FTPBK:
~/os2022$ git init
Initialized empty Git repository in /home/oss67820/os2022/.git/
oss67820@LAPTOP-AN5FTPBK:~
/os2022$ git remote add origin [https://github.com/ghpk98/OS-Term-Project.git](https://github.com/ghpk98/OS-Term-Project.git)
oss67820@LAPTOP-AN5FTPBK:~/os2022$ git pull origin brchSON
Username for '[https://github.com'](https://github.com'): oss67820
Password for '[https://oss67820@@github.com'](https://oss67820@@github.com'):
PUSH BRANCH
git remote add origin https://github.com/~.git
git pull origin BRANCH
git checkout -b BRANCH
git add .
git commit -m "COMMENT"
git push origin BRANCH
반응형
'학부공부 > OS_운영체제' 카테고리의 다른 글
TP1.4. Python : GanttChart [OS Scheduling simulator] (0) | 2022.06.06 |
---|---|
TP1.3. 05.20. BREAKOUT MEETING [OS Scheduling simulator] (2) | 2022.06.06 |
TP1.1. 05.13.BREAKOUT MEETING [OS Scheduling simulator] (2) | 2022.06.06 |
27. Thread(2) (17) | 2021.12.10 |
26. Thread(1) (4) | 2021.12.08 |
댓글