Louie De Janeiru

git_hub simple 'how to' 본문

Utils

git_hub simple 'how to'

Louiey 2020. 11. 20. 15:26
louiey@LOUIEY-LT:$ git init
Initialized empty Git repository in /mnt/d/GIT/GIT_HUB/git_test/.git/

louiey@LOUIEY-LT:$ git config user.name 'louiey'
louiey@LOUIEY-LT:$ git config user.email 'louiey@naver.com'
louiey@LOUIEY-LT:$ git status
On branch master

No commits yet

nothing to commit (create/copy files and use "git add" to track)
louiey@LOUIEY-LT:$ ls
louiey@LOUIEY-LT:$ ls -al
total 0
drwxrwxrwx 1 louiey louiey 4096 Nov 20 15:09 .
drwxrwxrwx 1 louiey louiey 4096 Nov 20 15:08 ..
drwxrwxrwx 1 louiey louiey 4096 Nov 20 15:10 .git
louiey@LOUIEY-LT:$ touch test.c
louiey@LOUIEY-LT:$ ls
test.c
louiey@LOUIEY-LT:$ git add -A
louiey@LOUIEY-LT:$ git status
On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

        new file:   test.c

louiey@LOUIEY-LT:$ git commit -m "test commit"
[master (root-commit) 277c035] test commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 test.c
louiey@LOUIEY-LT:$ git status
On branch master
nothing to commit, working tree clean
louiey@LOUIEY-LT:$ git log
commit 277c035f0ce71f314570bd6175972d192ac32bf4 (HEAD -> master)
Author: louiey <louiey@naver.com>
Date:   Fri Nov 20 15:11:39 2020 +0900

    test commit
louiey@LOUIEY-LT:$ git stage
Nothing specified, nothing added.
Maybe you wanted to say 'git add .'?
louiey@LOUIEY-LT:$ git remote add origin https://github.com/louiey/git_test.git
louiey@LOUIEY-LT:$ git push origin master
Username for 'https://github.com': louiey
Password for 'https://louiey@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/louiey/git_test.git/'
louiey@LOUIEY-LT:$ git push origin master
Username for 'https://github.com': louiey
Password for 'https://louiey@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/louiey/git_test.git/'
louiey@LOUIEY-LT:$
louiey@LOUIEY-LT:$
louiey@LOUIEY-LT:$ git push origin master
Username for 'https://github.com': louiey@naver.com
Password for 'https://louiey@naver.com@github.com':
Counting objects: 3, done.
Writing objects: 100% (3/3), 200 bytes | 200.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote:      https://github.com/louiey/git_test/pull/new/master
remote:
To https://github.com/louiey/git_test.git
 * [new branch]      master -> master
louiey@LOUIEY-LT:$

'Utils' 카테고리의 다른 글

Cygwin path  (0) 2021.01.30
how to github  (0) 2020.12.08
JAVA HOME  (0) 2020.05.16
Find peaks from array in C  (0) 2020.03.05
Terminal option flag  (0) 2020.02.27