git journey
23OCT2024
Make sure your .gitignore and .gitattributes files are in place.
In VS you can press: CTRL + '
Or in Ubuntu go to the root of the solution in terminal
git init
git add .
git commit -m "Initial commit"
Then Create a Repository on GitHub:
Go to GitHub and log in.
Click on the New button to create a new repository.
Name the repository, set it to public or private, and create it.
Add the Remote Repository: Copy the repository URL from GitHub and use it to add a remote in your local Git.
git remote add origin https://github.com/your-username/your-repository.git
Push Your Code: Push your local repository to GitHub.
git push -u origin master (check if master or main)
git branch listed the branch, funnily enough
Then later after some code-peddling
git add .
git commit -m "Update Program.cs to handle media downloads"
git push origin master
Origin is shorthand for url: https://github.com/yourusername/your-repo.git
Poxy CRLF issue Try:
git config --global core.autocrlf true On windows
git config --global core.autocrlf input On linux
Comments
Post a Comment