Help for new Git User

I’m new to using GIT and have a few questions you may answer to direct me to where I can find answers.

I have already created a GIT repository on my hard drive based on the projects in my Visual Studio ‘repos’ directory structure. I have a number of files listed in the Unstaged Changes window and a much larger group listed in the Staged Changes (Will Commit) window. One of the things I noticed is that GIT seems to have put all files in the repositories, generated executables as well as source code. Should the binaries and executables be in the repository? I would think that version control only needs to be used for the sources.

Also, I have a copy of progit.pdf, which covers the command line operation of GIT, but is there a user manual specific to the Git Gui executable?

Also, is there a way to integrate the GIT repository commands (state, commit, pull, etc.) into the Visual Studio 2019 IDE so I can use one tool for both development and version control?

Finally, how do I put a local GIT repository onto GitHub?

Appreciate any input and guidance you can give me.

Generally generated files including complied executables shouldn’t be in the repository, but git will add and commit whatever you tell it to. For files you don’t want to commit it’s usually a good idea to add them to a .gitignore file. That way git won’t mention them as untracked, and you can’t add them by accident. The ignore file can be committed to the repository, so anyone who clones the repository will get the right settings from the start. Note that ignoring does not work on files that are part of the repository at the current HEAD or staged for commit, you have to remove/reset them first.

  1. Create a new repository on Github. Do not choose any of the initialization options.
  2. Add the new Github repository as a remote of your local one. The repository page on Github should show and example git remote add command as long as the repository is empty, look for “push an existing repository from the command line”.
  3. And then push! :cat:

Thank you very much for the information.

Nick Piazza