Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit abc0522

Browse files
COMMANDS
1 parent cc1fa56 commit abc0522

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Git
2+
git config --global user.name "Your Name" (to config username)
3+
git config --global user.email "youremail@example.com" (to config useremail)
4+
git config --global init.defaultBranch main (to change branch from master to main)
5+
git config --global --unset user.name(to unset username)
6+
git config --global --unset user.email(to unset email)
7+
git config --list (to check)
8+
pwd(it will show u where you are)
9+
ls -a(for hidden files)
10+
11+
12+
13+
14+
GitHub
15+
git pull origin main --allow-unrelated-histories
16+
git init
17+
git remote add origin //link of your repository // then (.git)
18+
For Example : https://github.com/your-username/your-repo-name.git
19+
git add .
20+
git commit -m "any message"
21+
git push origin -u main
22+
23+
git remote add origin https://github.com/Muhammad-Uzair-Yasin/Web.Class.Practice.git

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /