git config user.email '[email protected]'
git config user.name 'Masroor Hussain'
git init
git remote -v
git remote add origin remote_url_here
- First you need to add the remote(see the step above to add a remote), then update it's url with PAT in it
git remote set-url origin https://repo_owner_username_here:[email protected]/repo_owner_username_here/repo_name_here.git
rm -rf .git
git add filename
or to add all files do the following:
git add .
git restore HEAD filename
git commit -m 'message here'
git diff > unstaged.diff
git diff --staged > staged.diff
git apply filename.diff
git reset --soft HEAD~1
git reset --soft HEAD~N
git push remote_name :branch_name