1. $ sudo apt install ppa-purge
2. $ sudo ppa-purge ppa:git-core/ppa
3. $ sudo apt purge git
4. $ sudo apt install git
Configuring the git
1. for username, email and other config.
$ git config --global user.name "nabim777"
$ git config --global user.email “nabinalemagar019@gmail.com”
Notes: to view the listing of config
$ git config –list
2. go to the home directory like(you can skip)
$ pwd
finding the .gitconfig
$ ls -all
open that .gitconfig files
$ xdg-open .gitconfig
Notes: yo page options ho hai skip gardim…
pahila arko page try gardim la error ayo vani balla yo haii
I have done this and started
a. $ sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev asciidoc xmlto docbook2x
b, $ git clone https://git.kernel.org/pub/scm/git/git.git
3. for cloning (i.e downloading)
first go to directory or folder where you want to clone/download the files and open cmd
copy the link of box as “https://github.com/nabim777/Django.git”
$ git clone https://github.com/nabim777/Django.git
4. Commiting (uploading rayako add data)
a. Go to the directories
$ cd Django
b. add one file as testing.txt in that directory
c. Checking what to add
$ git status
note: red things cames
d. adding the testing.txt to git
$ git add testing.txt
e. Checking if there is something to add
$ git status
f) to commi
$ git commit -m 'tesai hoo commint' testing.txt
g) pushing the data I.e now making to view the data in the github account
$ git push -u origin main
username: nabim777
password: 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
note:
your toke for 90 days only 2021 may 6
tokens: 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
for token making or regenerating
https://github.com/settings/tokens
\
5. Uplaoding of fies
a) go to directory of files to be uploaded and open cmd
b) make files for directory of git(can see by hidden item ON)
$ git init
c) to check the status
$ git status
Note: Red cames I.e the that is not added
d) to add the folders or files
$ git add .
Note: if you add the something in the folder then do again this
$ git staus
$ git add .
e) now ready to commit
$ git commit -m 'first commit'
f) making url path
$ git remote add origin https://github.com/nabim777/quiz.git
f) pushing the data(displaying the data in github)
…or create a new repository on the command line
$ git commit -m "first commit"
$ git remote add origin https://github.com/nabim777/nalem.git
$ git push -u origin main
…or push an existing repository from the command line
$ git remote add origin https://github.com/nabim777/nalem.git
0 Comments