Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /************* Github 내에 소스코드 삭제방법*********************/
- /*문제점: 깃허브에 저장된 폴더나 소스를 삭제할수없어 짜증났었음**/
- /*폴더내용을비우고 삭제하려고 했더니 mach가 안되서 오류가남******/
- /*새롭게 로컬에 똑같은 이름폴더를만들고 Merge를 하니까 해결됨****/
- /****************************************************************/
- /**************** github 다운받고 초기설정 방법******************/
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git config --global user.name "EdgarSang"
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git config --global user.email "your_email@youremail.com"
- //글로벌네임 리네임 방법
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git config --global user.name EdgarHan
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git config --list
- core.symlinks=false
- core.autocrlf=true
- core.fscache=true
- color.diff=auto
- color.status=auto
- color.branch=auto
- color.interactive=true
- help.format=html
- http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
- diff.astextplain.textconv=astextplain
- rebase.autosquash=true
- user.name=EdgarSang
- user.email=poseidon0288@gmail.com
- Administrator@WIN-UB18TI2GOTU MINGW64 ~
- $ mkdir gittemp
- Administrator@WIN-UB18TI2GOTU MINGW64 ~
- $ cd gittemp
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp
- $ git init
- Initialized empty Git repository in C:/Users/Administrator/gittemp/.git/
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ touch Readme.txt
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git status
- On branch master
- Initial commit
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- Readme.txt
- nothing added to commit but untracked files present (use "git add" to track)
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git add Readme.txt
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git commit -m "Add readme.txt"
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git remote add origin https://github.com/edgarSang/projects.git
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git remote -v
- origin https://github.com/edgarSang/projects.git (fetch)
- origin https://github.com/edgarSang/projects.git (push)
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git remote show
- origin
- /**************************여기서부터 GitHub내 파일 삭제 완료******************************/
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git push -u origin master
- Username for 'https://github.com': poseidon0288@gmail.com
- To https://github.com/edgarSang/projects.git
- ! [rejected] master -> master (non-fast-forward)
- error: failed to push some refs to 'https://github.com/edgarSang/projects.git'
- hint: Updates were rejected because the tip of your current branch is behind
- hint: its remote counterpart. Integrate the remote changes (e.g.
- hint: 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git push origin +some_branch
- error: src refspec some_branch does not match any.
- error: failed to push some refs to 'https://github.com/edgarSang/projects.git'
- Administrator@WIN-UB18TI2GOTU MINGW64 ~/gittemp (master)
- $ git push origin +master
- Username for 'https://github.com': poseidon0288@gmail.com
- Counting objects: 5, done.
- Delta compression using up to 4 threads.
- Compressing objects: 100% (3/3), done.
- Writing objects: 100% (5/5), 479 bytes | 0 bytes/s, done.
- Total 5 (delta 1), reused 0 (delta 0)
- remote: Resolving deltas: 100% (1/1), done.
- To https://github.com/edgarSang/projects.git
- + 4ebba1a...b180f2e master -> master (forced update)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement