提交項目到git

前提條件安裝git和配置,比較簡單這裏就不介紹了。

 

右擊菜單中"Git Bash Here"輸入如下命令

1.初始化

git init

2. 設置提交地址

git remote add origin https://gitee.com/GitJackLiu/Money.git

 

注意:如果新建 git 倉庫時選擇了創建某文件,則需要合併才能提交,使用如下命令合併

git pull --rebase origin master

3.添加文件

git add .

 

4. 設置提交說面

git commit -m "first commit" 

5.  推送

git push -u origin master


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章