Here is a list of some basic Git commands to get you going with Git.
Since Git was designed with a big project like Linux in mind, there are a lot of Git commands. However, to use the basics of Git, you’ll only need to know a few terms. They all begin the same way, with the word “git.”
For login Commnads
git config --global user.email
"example@gmail.com"
git config --global user.name
"qwaszx12"
1) git init
2) git add [filename] or -A or .
3) git status
4) git commit -m "yours
commit"
5) git remote add origin reoName
6) git push origin master (if
show any error then set this {git push origin master -force})
7) git clone repoName
8) git pull origin master
For remove any directory into repository
9) git rm -r one-of-the-directories
git commit -m "Remove duplicated
directory"
git push origin <your-git-branch>
(typically 'master', but not always)
No comments:
Post a Comment