Push code to GitHub

$ cd “C:\pycode”
$ echo “# python Kafka” >> README.md
$ git init
$ git add README.md
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
$ git commit -m “first commit”
[master (root-commit) 479c23e] first commit
1 file changed, 1 insertion(+)
create mode 100644 README.md
$ git remote add origin https://github.com/mypy/pycode.git

$ git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 229 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/mypy/pycode.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
$ git add .
$ git commit -m “initial commit”
$ git remote add origin https://github.com/mypy/pycode.git
fatal: remote origin already exists.
$ git push -u origin master

Leave a Reply

Your email address will not be published. Required fields are marked *