git clone http.......
after creating new file it will be as untracked file in vs code then need copy to git folder in desktop (M)
git add filename
git commit -m "message"
git push origin main
origin = http link
main = branch
add file -> new file ->
git pull origin main
create folder-> create file ->save
git init
git add .
git commit -m "message"
add new -> new repository(then copy the link in it)
git remote add origin http link
git push origin master(it was in the name of master as branch name)
git branch -m master main
or
git branch -M main
git push origin main
git checkout new-branch-name
git merge another-branch-name
then push it to see the changes
pull requests-> new pull request
base will be main - comapring will be updated or new featured things
create pull request
give comment
U - untracked
M - modified
R - removed
A - added
C - committed
D - deleted
git init
git add .
git commit -m "message"
git remote add origin http link
git branch -m master main
git branch -M main
git push origin main
git pull origin main
git status
git log
git init - initialize the git repository
git add . - add all the files in the current directory to the staging area
git commit -m "message" - commit the files in the staging area with a message
git remote add origin http link - add a remote repository to the local repository
git branch -m master main - rename the branch from master to main
git branch -M main - rename the branch from master to main and force the push
git push origin main - push the changes to the remote repository
git pull origin main - pull the changes from the remote repository