特定のgithubのページ(URL=https://github~~)に
フォルダ(detection)を作ってファイル(detect.py)をコミットしたいのですが、下記のコマンドでできるでしょうか?訂正箇所等を教えてください
参考サイト(https://qiita.com/KosukeQiita/items/cf39d2922b77ac93f51d)
git
1#1ローカルでフォルダ作成 2mkdir ~/git/detection 3 4#2移動 5cd ~/git/detection 6 7#3ディレクトリ初期化 8git init 9 10#4ファイルの操作 11mv ~/DOwnlowds/detect.py ~/git/detection/detect.py 12chmod 755 ~/git/detection/detect.py 13 14#5コミット 15git add . 16 17#6githubにプッシュ 18git remote add origin https://github~~ 19
#追記
解決
git
1#既存レポジトリ対象のcommand 2git clone URL 3cd jupyter_note(cloneしたフォルダ) 4mkdir detecting_trend_words 5cd detecting_trend_words 6#ファイル移動 7cp change_detection.ipynb detecting_trend_words/change_detection.ipynb 8git add . 9git commit -m "コメント” 10git push origin master
特定のファイル削除
git
1git reset 2git rm 'ファイル名' 3git commit -m "コメント” 4git push origin master
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。