Steps For PR (Pull Request) Creation
Issues -Fixes :
1.fatal: unable to access 'https://github.com/': SSL certificate problem:
self signed certificate in certificate chain.
git config --global http.sslVerify false
2.https://github.com/orgs/xyz/sso?authorization_request=<AccessToken>
Enter above link in browser and login ,Once you accept the above and give below
command it will clone
3.RPC failed; HTTP 503 curl 22 The requested URL returned error: 503
Verify any firewall,Disable the firewall to connect the client
4.fatal: not a git repository (or any of the parent directories): .git
Change the directory to sfdc of the cloned folder
5.How to know your git user and email ?
Commands :
git config --global --list
Individually can use below as well
git config user.name
git config user.email
6. fatal: --local can only be used inside a git repository ?
Change the directory to the project where you have ".github" folder.
7. How to config two different git repo with different credentials in one system?
Ex: 1 with company credentials & 2nd with personal credentials ?
git config --local --list
git config --local user.name "xyz"
config --local user.email "xyz@gmail.com"
5.How to know your git user and email ?
Commands :
git config --global --list
Individually can use below as well
git config user.name
git config user.email
6. fatal: --local can only be used inside a git repository ?
Change the directory to the project where you have ".github" folder.
7. How to config two different git repo with different credentials in one system?
Ex: 1 with company credentials & 2nd with personal credentials ?
git config --local --list
git config --local user.name "xyz"
config --local user.email "xyz@gmail.com"
8. How to get one commit changes to other branch ?
Ex: You created a feature branch due to some issues you need to delete that branch and on the latest main branch code re commit your changes ,So instead of staging the changes in each file can use cherry pick git command to fetch that commit specific changes to your new feature branch.
git cherry-pick <Commit Id>
No comments:
Post a Comment