본문 바로가기
IDE/GIT

github 폴더 커밋

by forkballpitch 2017. 7. 26.
728x90
728x90


rohyr@rohyr-PC MINGW64 ~ (master)

$ cd C:/Users/rohyr/git/image


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git init

Initialized empty Git repository in C:/Users/rohyr/git/image/.git/


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git add .


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git remote add origin

usage: git remote add [<options>] <name> <url>


    -f, --fetch           fetch the remote branches

    --tags                import all tags and associated objects when fetching

                          or do not fetch any tag at all (--no-tags)

    -t, --track <branch>  branch(es) to track

    -m, --master <branch>

                          master branch

    --mirror[=<push|fetch>]

                          set up remote as a mirror to push to or fetch from



rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git remote add origin https://github.com/forkballpitch/image.git


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git remote -v

origin  https://github.com/forkballpitch/image.git (fetch)

origin  https://github.com/forkballpitch/image.git (push)


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git add .


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git commit -m "first commit"

[master (root-commit) e466cf0] first commit

 3 files changed, 0 insertions(+), 0 deletions(-)

 create mode 100644 image1.png

 create mode 100644 image2.png

 create mode 100644 image3.png


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git push origin mster

error: src refspec mster does not match any.

error: failed to push some refs to 'https://github.com/forkballpitch/image.git'


rohyr@rohyr-PC MINGW64 ~/git/image (master)

$ git push origin master

Counting objects: 5, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (5/5), done.

Writing objects: 100% (5/5), 161.83 KiB | 0 bytes/s, done.

Total 5 (delta 0), reused 0 (delta 0)

To https://github.com/forkballpitch/image.git

 * [new branch]      master -> master



728x90
728x90

'IDE > GIT' 카테고리의 다른 글

git사용시 덮어씌우기  (0) 2022.03.18
github에 contribute 하기  (0) 2019.09.04
jira 설치하기  (0) 2019.01.10
git 기초 퍼옴  (0) 2017.07.20
https://stackoverflow.com/questions/18588974/git-prevents-pushing-after-amending-a-commit  (0) 2017.07.19