Git初心者で恐縮ですが、マックのローカルで作業していて、ある特定のディレクトリ下(~/Google ドライブ/Edit-settings)の変更点をaddしようとしたら、その上の階層などのファイルらが多く表示されています。
下記のような感じです。
bash
1~/Google ドライブ/Edit-settings:master$git status 2On branch master 3Changes to be committed: 4 (use "git reset HEAD <file>..." to unstage) 5 6 new file: ../../Dropbox/FELICA/PORTFOLIO/制作サイト一覧/html:css/herbkitchen02/img/salad.jpg 7 new file: ../../dotinstall/index.html 8 9Changes not staged for commit: 10 (use "git add/rm <file>..." to update what will be committed) 11 (use "git checkout -- <file>..." to discard changes in working directory) 12 13 deleted: ../../Dropbox/FELICA/PORTFOLIO/制作サイト一覧/html:css/herbkitchen02/img/salad.jpg 14 deleted: ../../README.md 15 deleted: ../../dotinstall/index.html 16 17Untracked files: 18 (use "git add <file>..." to include in what will be committed) 19 20 ../../.Trash/ 21 ../../.atom/ 22 ../../.bash_history 23 ../../.bash_profile 24 ../../.bash_profile.macports-saved_2017-07-21_at_13:48:00 25 ../../.bash_sessions/ 26 ../../.bashrc 27 ../../.config/ 28 ../../.cups/ 29 ../../.dropbox/ 30 ../../.eclipse/ 31 ../../.gem/ 32 ../../.gitconfig 33 ../../.gvimrc 34 ../../.jenkins/ 35 ../../.mysql_history 36 ../../.node_repl_history 37 ../../.npm/ 38 ../../.nvm/ 39 ../../.oracle_jre_usage/ 40 ../../.psql_history 41 ../../.ssh/ 42 ../../.tooling/ 43 ../../.v8flags.5.1.281.98.8dc40979e5ac1d0b398d4c73683ab2c7.json 44 ../../.vagrant.d/ 45 ../../.vim/ 46 ../../.viminfo 47 ../../.vimrc 48 ../../.vimrc_backup2 49 ../../.vscode/ 50 ../../.zprezto/ 51 ../../Applications/ 52 ../../Creative Cloud Files/ 53 ../../Desktop/ 54 ../../Documents/ 55 ../../Downloads/ 56 ../../Dropbox/.dropbox 57 ../../Dropbox/COOKPAD/ 58 ../../Dropbox/Dropbox スタートガイド.pdf 59 ../../Dropbox/Hatena/ 60 "../../Dropbox/Icon\r" 61 ../../Dropbox/sample/ 62 ../../Dropbox/カメラアップロード/ 63 ../../Google ドライブ/ 64 ../../Library/ 65 ../../Movies/ 66 ../../Music/ 67 ../../Pictures/ 68 ../../Public/ 69 ../../Schoo/ 70
一応今回は~/Google ドライブ/Edit-settings
だけを反映できればいいのですが、他の階層のファイルが数多く表示されてしまっている状態です。
これらはaddして一緒にcommitしてしまっていいのでしょうか?
わかる方いましたらよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/10/04 11:45