0

私は git を初めて使用し、ローカル リポジトリをセットアップしてコードの変更を追跡することを目指しています。これが私がやったことと私が直面している問題です:

1. create a new remote repository(in my local network).(done using gitstack)
2. identify a local folder where mode is and use it as repository
   C:\projects\proj1
3. CD to above folder and ran following command
$  git init
4. Then I added all the code into local git rep
   $ git add .
   I tried few things above, Once I noticed many files were not being tracked  I used $ git add -A as well, but no difference
5. I then did my first commit
   $ git commit -am "initial commit"
6. I added this to remote by this
   $ git remote add origin https://ipaddress/repname.git
7. Finally I pushed all content of local to remote
   $ git push origin master
8. At one point for item 7 I did this as well
   $git push --set-upstream origin master and may be few other things

問題は私が何をしても、追跡されているファイルはほとんどありません。私のプロジェクトには、C# dll と Web コンポーネントにコンパイルされるコードがあります。dll 内のすべてのコードは追跡されますが、Web プロジェクトの一部であるコードは追跡されません。ディレクトリのレイアウト

C:\projects\proj1\.git
C:\projects\proj1\visualstudioproject.sln
**C:\projects\proj1\tracked1\
C:\projects\proj1\tracked2\**
C:\projects\proj1\webcomponentwhereweconfigfileis\

何らかの理由でtracked1とtracked2のファイルが追跡されていますが、それ以外の場合は、変更を加えると常にこれを取得します

$ git status
  On branch master
  Your branch is up to date with 'origin/master'.

  nothing to commit, working tree clean

私のプロジェクトファイルのほとんどが追跡されない原因となっているものを教えてください。

ありがとう

4

1 に答える 1