I spent an hour trying to make it work searching, then i found this video - thank you for making this video. the personal access token was a game changer. such a concise, well-made video
This was awesome, thank you so much, I'm learning Java and I use my personal pc and my work pc, so using a GitHub repo saves me a lot of time as the code is centralized and I only need to updated it and push as I change machines :)
when using git push origin main, i get these errors: remote: Permission to REPOSITORY.git denied to USER. fatal: unable to access 'REPOSITORY': The requested URL returned error: 403. censoring repo and user
Thanks for the tip! I was trying to make it easier for me on the video editing later when it came to obscuring certain details, but, yeah, definitely I will see what I can do.
Wouldn't this leak your username and access token to your local network? I'm not certain how git/https works so I may be wrong, but I assumed your initial url was visible to other machines on your lan even though it is http over ssl.
Great questions! It should be okay because the connection uses HTTPS, which encrypts the data, making it safe from others on the local network. However, you raise a good point-embedding tokens directly in the URL can expose them in other ways, like in command history or config files. To mitigate this, you can clear specific commands from your history or disable history temporarily when running sensitive commands ( history -d or clear history completely with history -c). Again, I don't for see any real issues with this. Another security alternative is using Git Credential Manager or SSH keys instead of putting the token directly in the URL. Thanks for the feedback-it’s a great idea for a future video!
Thank you a verry Helpfull tuto ; i spent hours to login i did the "gh" command but i want to use git command ..Finaly you got me a great solution To it .
It was helpul to start with, thanks! My question is- If I am having my own repository in github and I have added it to my remote origin then is there any need to have a remote upstream URL?
Sorry for the delayed response. You have a couple of options like removing the "origin" alias 'git remote remove origin' and then re-adding again: 'git remote add origin github.com/YourUsername/YourRepo.git' Alternatively, this might be an issue with your git installation. You could remove the git installation on your OS and reinstalling. I would try the first step and if that doesn't work then reinstall git.
still doesn't work for me... I followed your steps, was still prompted to input username and password when it was time to push, tried both password and token key, both failed
Git (github is a remote git host) has stressed and confused generations of programmers. It is a rite of initiation. Now if you are ever talking to another coder at a social gathering, just mention something you hate about git, or some terrible experience you had and you instantly have a new friend.
yeah, this is a challenge in trying to design a video that captures all the details. The balance between too much and not enough. Thanks for the comments.
I was just sick of having to log in every time I wanted to git push. Thank you very much, you are an awesome master and made my life so easier.
Glad I could help
I spent an hour trying to make it work searching, then i found this video - thank you for making this video. the personal access token was a game changer. such a concise, well-made video
thank you for the kind words!
That was a little jam in the beginning~! Thanks for your help 💕💕
Awesome! I am glad this was helpful!
This was awesome, thank you so much, I'm learning Java and I use my personal pc and my work pc, so using a GitHub repo saves me a lot of time as the code is centralized and I only need to updated it and push as I change machines :)
Awesome! You are starting an exciting journey as a software developer.
when using git push origin main, i get these errors: remote: Permission to REPOSITORY.git denied to USER.
fatal: unable to access 'REPOSITORY': The requested URL returned error: 403. censoring repo and user
It sounds like authentication errors. You might want to check when you set the "git remote set-url origin :@github.com//.git"
@@cwm-codingwithmike thanks
Finally i can get it to work! Thanks a bunch for the tutorial 😁
Wonderful! I am glad this video was helpful!
Very helpful - thank you. It would make things easier to follow if you didn't clear the screen so quickly after every command.
Thanks for the tip! I was trying to make it easier for me on the video editing later when it came to obscuring certain details, but, yeah, definitely I will see what I can do.
Wouldn't this leak your username and access token to your local network? I'm not certain how git/https works so I may be wrong, but I assumed your initial url was visible to other machines on your lan even though it is http over ssl.
Great questions!
It should be okay because the connection uses HTTPS, which encrypts the data, making it safe from others on the local network. However, you raise a good point-embedding tokens directly in the URL can expose them in other ways, like in command history or config files. To mitigate this, you can clear specific commands from your history or disable history temporarily when running sensitive commands ( history -d or clear history completely with history -c). Again, I don't for see any real issues with this.
Another security alternative is using Git Credential Manager or SSH keys instead of putting the token directly in the URL. Thanks for the feedback-it’s a great idea for a future video!
Brilliant! Excellent tutorial!
Awesome! I am glad it was helpful!
Thank you a verry Helpfull tuto ; i spent hours to login i did the "gh" command but i want to use git command ..Finaly you got me a great solution To it .
It was helpul to start with, thanks!
My question is- If I am having my own repository in github and I have added it to my remote origin then is there any need to have a remote upstream URL?
You can probably omit the first remote upstream URL as long as you set the remote upstream url with the user and userkey it should be fine!
fabulous explanation sir
👌👌
Thanks and welcome
Excelent tutorial! Thanks alot! 😃
I am glad it was helpful.
THIS HELPED ME SO MUCH!!! thanks
git push -u origin main
fatal: protocol 'https' is not supported (What's the error), Please tell me
Sorry for the delayed response. You have a couple of options like removing the "origin" alias 'git remote remove origin' and then re-adding again: 'git remote add origin github.com/YourUsername/YourRepo.git'
Alternatively, this might be an issue with your git installation. You could remove the git installation on your OS and reinstalling. I would try the first step and if that doesn't work then reinstall git.
Cool trick, ive got a question though. when you use vim in gitbash, how did it work if you typed vi and not vim?
finally a useful video thank you so much
Thank you for the kinds words! I am glad it helped!
great video! Thanks!
Thanks I am glad it was helpful!
still doesn't work for me... I followed your steps, was still prompted to input username and password when it was time to push, tried both password and token key, both failed
Hi Vince, I am sorry to hear you are still having problems getting this working.
Vs code can help you connect with git without generating the acces token
your channel is great, with stylish flare. thanks!
thanks!
It was really helpful. Thanks!
Glad it was helpful!
Thanks, sir. God bless you!
You are very welcome
Bro you save my life thank you so much 🇧🇷
Thanks Sir ..
love from Pakistan ❤️
thank you!
Thank you very much friend :)
Happy to help
Thank you very much Mike
I am glad this was a help to you.
❤️
is anyone else still confused? github is so confusing to me and it's stressing me out by the fact that i HAVE to use this
Hi, I am sorry to hear you are having difficulty with the process and github. It is a very powerful tool for storing all kinds of digital documents.
Git (github is a remote git host) has stressed and confused generations of programmers. It is a rite of initiation. Now if you are ever talking to another coder at a social gathering, just mention something you hate about git, or some terrible experience you had and you instantly have a new friend.
@@Vsor Ha Ha! Like Cherry Picking! Conceptually that one through me for a loop for a very long time....
@@cwm-codingwithmike "my favorite rebasing strategy is to delete the entire directory, throw out my computer, and get a job on a farm."
@@Vsor HA! Love it!
how to set multiple account with this
sorry for the delay in the response. I am not sure off the top of my head.
Thank you Mike
I am glad you enjoyed the video and found it helpful! Btw, thanks for the Sub!
@@cwm-codingwithmike I was struggling for days with that issue, and you made it so easy. Thank you for sharing your knowledge
Well, This was nice and all but, you could have kept the video very short.
yeah, this is a challenge in trying to design a video that captures all the details. The balance between too much and not enough. Thanks for the comments.
very helpful
I am glad it was! Thanks!
Obrigado! Me ajudou bastante!
I am so glad! Cheers!
thanks 😁
Nice email. X)
Thanks 😅
@@cwm-codingwithmike Hej, thank you for the video. Wanted to also reply that at 2:01 your full email is visible for a fraction of a second. Take care
hmmm. Thanks for catching that. I will address that.
useful
Glad to hear that