You are on page 1of 1

//after repasing and wanna push

git push -f

//for sign in
git config --global user.email "mahfouzu888@gmail.com"
git config --global user.name "mahfouzu888@gmail.com"

//to push the ingular Code in github

// to know the place u are


git status

//to go to any disk you want


d:

//main or master brench => go to deployment or to website directly


// and you should create your own to avoid fall production.

//to create own or new branch use and will create and switch to your branch
git checkout -b branch_name

//to go to anthor branch


git checkout branch_name

//to publish spacefic branch


git push origin branchName

///steps for Push Project repo


git init
git add .
git commit -m "First Commit"
git remote add origin url
git push origin branch_name

//steps to Pull Project


git clone url

//How to Merge your branch with the main branch


git merge your_branch_name

//to know the pulling new code


git pull origin master

//to know the pushing new code


git push -u origin master

You might also like