Getting error while pushing and pulling for the first time
this is because I have not set up any authentication mechanism behind the scene to push or pull my changes to the remote repository.
Authenticate for Cloning
- Method 1: Use SSH for making connection, so use SSH here as well (for MAC)
- Create a RSA key pair.
- It's a public private key pair I have to employ using the handshake technique I'll be able to authenticate myself.
- Use ssh-Keygen (a tool),
- on windows we can use Puttygen to generate a key pair okay.\
Show a key pair being created. Key pair is generated in this default location i.e. .ssh.- It is a concealed file. That is why it is.id underscore rsa.
- hit enter now this will create a key pair.
- Ask to passphrase
- Just hit next. Don't enter anything and you will have a key pair created at this location.
- Cross check RSA key pair at .ssh location
- id_rsa is a private key - keep it very secure to yourself. You should not share this private key with anyone.
- id_rsa.pub is a public key - A public key is something you can share where you want to gain access.
- Check your public key
- Copy this public key
- At devOps, open User Settings of your project
- Add button New Key
- Paste your public hey here
- Click Add
- Create a RSA key pair.
- Method 2: Auth via command if connection made via HTTPS (Recommended for window users)
- You will get url from DevOps > Repos > select HTTPS
- Windows users continue with this https.
- During Cloning, you will notice a Microsoft login page showing up immediately, much like when you use the command git clone. over yonder. All you need is your user ID and password.
Method 3: via HTTPS (Recommended for window users) and temporary Credentials
- Generate Temporary pass using following button
Method 4: via IDE you are using at your local like VSCode
- select your IDE in this drop down
- As VS code will be opened and the cloning will be performed using VS code. Once more, the same authentication technique.
- You can either use https or SSH over there also.
Push your change at Report Repository
Cross check same at DevOps > default repository