ローカルプロジェクトをcodingにプッシュNetリモートウェアハウス

1218 ワード

codingで新しいプロジェクトを作成する


最初に初期化されていない新しいプロジェクトを作成します.プロジェクトの作成時に、「README.mdファイル初期化プロジェクトの有効化」をチェックしないでください.

インストールGitおよび基本設定

  • GitをインストールするWindowsバージョン
  • プロジェクトフォルダの「右クリック」で「Git Base Here」を選択すると、Git Baseウィンドウが開きます.
  • Gitでcodingのアカウントとメールボックス
  • を構成する
    git config --global user.name "coding  "
    git config --global user.email "coding  "
    
  • プロジェクトフォルダをGitのローカルウェアハウスに初期化する
  • git init #    
    
  • ファイル/フォルダをワークスペースに追加:git add [file]、ローカル倉庫にコミット:git commit -m " "
  • git add . #                
    git commit -m "test commit" #        
    
  • リモートウェアハウスを関連付け、ローカルウェアハウスをリモートウェアハウスにプッシュする
  • .
    git remote add origin https://git.coding.net/xxx/xxx.git #       
    #          (             )
    git push -u origin master #            (          )
    ##########################################
    #              (        )
    git push origin master #                
    
  • ヒント:fatal:remote origin already existsの場合、gitのconfigにリモートウェアハウス
  • が構成されていることを示します.
    git remote rm origin #       
    

    ステップ6の再実行
    テキストリンク