gitローカルプロジェクトpushをリモートウェアハウスに

7712 ワード

環境


システム:windows
ディレクトリ:D:/workspace/idea/spark-test
リモートウェアハウス:https://github.com/HanlaoTwo/SparkStudy.git
プロトコル:https

バージョンライブラリの作成

# 
git init

Reinitialized existing Git repository in D:/workspace/idea/spark-test/.git/

# git add Git, :
git add *
warning: LF will be replaced by CRLF in src/main/scala/sql/SparkSQLExample.scala.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/compiler.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/encodings.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/misc.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/modules.xml.
...

# 
git commit -m "all is new"
[master (root-commit) 521cf14] all is new
warning: LF will be replaced by CRLF in .idea/compiler.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/encodings.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/misc.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .idea/modules.xml.

リモート・ウェアハウスへの送信

# 
git remote add origin https://github.com/HanlaoTwo/SparkStudy.git
#
fatal: remote origin already exists.

# 
git remote rm origin
# 
git remote add origin https://github.com/HanlaoTwo/SparkStudy.git

# 
git push -u origin master
Username for 'https://github.com': hanlaotwo
Password for 'https://[email protected]':
Counting objects: 294, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (279/279), done.
Writing objects:  99% (292/294), 1.10 MiB | 68.00 KiB/s