Step by step Github using: Got to particular directory write below commands : ( I am using windows)
PS C:\Users\rkmishra\source\repos\mysqldjnago> git init
Initialized empty Git repository in C:/Users/rkmishra/source/repos/mysqldjnago/.git/
PS C:\Users\rkmishra\source\repos\mysqldjnago> git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
.vs/
app/
db.sqlite3
env/
manage.py
mysqldjnago.pyproj
mysqldjnago.pyproj.user
mysqldjnago.sln
mysqldjnago/
readme.html
requirements.txt
nothing added to commit but untracked files present (use "git add" to track)
PS C:\Users\rkmishra\source\repos\mysqldjnago> git add .\app\ .\mysqldjnago\ .\manage.py .\readme.html
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: app/__init__.py
new file: app/__pycache__/__init__.cpython-39.pyc
new file: app/__pycache__/forms.cpython-39.pyc
new file: app/__pycache__/models.cpython-39.pyc
new file: app/__pycache__/views.cpython-39.pyc
new file: app/forms.py
new file: app/migrations/__init__.py
new file: app/migrations/__pycache__/__init__.cpython-39.pyc
new file: app/models.py
new file: app/static/app/content/bootstrap.css
new file: app/static/app/content/bootstrap.min.css
new file: app/static/app/content/site.css
new file: app/static/app/fonts/glyphicons-halflings-regular.eot
new file: app/static/app/fonts/glyphicons-halflings-regular.svg
new file: app/static/app/fonts/glyphicons-halflings-regular.ttf
new file: app/static/app/fonts/glyphicons-halflings-regular.woff
new file: app/static/app/scripts/_references.js
new file: app/static/app/scripts/bootstrap.js
new file: app/static/app/scripts/bootstrap.min.js
new file: app/static/app/scripts/jquery-1.10.2.intellisense.js
new file: app/static/app/scripts/jquery-1.10.2.js
new file: app/static/app/scripts/jquery-1.10.2.min.js
new file: app/static/app/scripts/jquery-1.10.2.min.map
new file: app/static/app/scripts/jquery.validate-vsdoc.js
new file: app/static/app/scripts/jquery.validate.js
new file: app/static/app/scripts/jquery.validate.min.js
new file: app/static/app/scripts/jquery.validate.unobtrusive.js
new file: app/static/app/scripts/jquery.validate.unobtrusive.min.js
new file: app/static/app/scripts/modernizr-2.6.2.js
new file: app/static/app/scripts/respond.js
new file: app/static/app/scripts/respond.min.js
new file: app/templates/app/about.html
new file: app/templates/app/contact.html
new file: app/templates/app/index.html
new file: app/templates/app/layout.html
new file: app/templates/app/login.html
new file: app/templates/app/loginpartial.html
new file: app/tests.py
new file: app/views.py
new file: db.sqlite3
new file: manage.py
new file: mysqldjnago/__init__.py
new file: mysqldjnago/__pycache__/__init__.cpython-39.pyc
new file: mysqldjnago/__pycache__/settings.cpython-39.pyc
new file: mysqldjnago/__pycache__/urls.cpython-39.pyc
new file: mysqldjnago/__pycache__/wsgi.cpython-39.pyc
new file: mysqldjnago/settings.py
new file: mysqldjnago/urls.py
new file: mysqldjnago/wsgi.py
new file: readme.html
PS C:\Users\rkmishra\source\repos\mysqldjnago> git config --global user.email "therkmishra@gmail.com"
PS C:\Users\rkmishra\source\repos\mysqldjnago> git config --global user.name "Ram Krishn Mishra"
PS C:\Users\rkmishra\source\repos\mysqldjnago> git commit -m " First Django Web Application using Visual Studio"
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
.vs/
env/
mysqldjnago.pyproj
mysqldjnago.pyproj.user
mysqldjnago.sln
requirements.txt
PS C:\Users\rkmishra\source\repos\mysqldjnago> git branch
* master
PS C:\Users\rkmishra\source\repos\mysqldjnago> git checkout -b 'new_branch'
Switched to a new branch 'new_branch'
PS C:\Users\rkmishra\source\repos\mysqldjnago> git branch
master
* new_branch