One of the best tutorial channel in UA-cam I have ever seen. All steps are clearly shown and excellently explained. Well done, it makes lives of many developers easier
After many hours of searching and frustration I finally land on this tutorial which made my night much better. Thanks a million! Easy, simple and smooth! Well explained!
Thank you very much! Your video is so much HELPFUL!!! It's very clear and resonable. I was compeletely overwhealmed by my professors' misleading video. His Dutch-English is so bad and his 10 min video cost me nearly 3 hours to figure it out, but still give up in the end. I have never thought Git was so much easy before. Thanks for your videos and lectures again!
Damn! It took me ages trying to figure this out by myself. But your videos have made it so much easier and removed a lot of stress from the process. Thank you very much.
I'm really thankful for this video and your efforts in making difficult things easier for me. It has really helped me and i was able to push my first project to Gitlab. I'm so happy and grateful for your help.....Thanks so much and may God bless you.
great video helped me a lot thank you. if possible can you please share a video for same thing with Google SSO account and GitLab repo and git credential manager
Hello sir I have a question please, How do you switch from windows to mac this easily on the same screen? Please can you provide me with the software you use? Thanks a lot.
Hi Raghav.. Thank you for your effort. Please try to make some more videos on Gitlab...because we have very less gitlab tutorials available on youtube. presently most of the companies are using gitlab. hope you will consider my request. Thank you. keep going well.
Hi Raghav, after commit and push commands i got an error http access denied. so i saw solutions from stackoverflow on editing the credentials (username and password) from credential manager but it didnt work. i was getting the same error http access denied when i used push command. any suggestions ???
if You type in Windows Explorator folder in address bar 'cmd' and hit Enter key, a Command Line Tool will open-up with CWD with was in address of active folder. :)
Thank you so much sir, it was very helpful. Sir, is there any video on pull. And can you also put a tutorial of TDD please(specially the assertions topic)
Hey Raghav, Thank you for the tutorial. Really helpful. Is there a video to show us to switch between master and different branches and how to check-in to a branche?
Thank you very much for all the tutorials. You sharing your knowledge is very helpful for many people including me. I have one question here. What is sugnificance of -u option in the push command? Thanks in advance 🙂
Hi Kumar, this will help you - stackoverflow.com/questions/18867824/what-does-the-u-flag-mean-in-git-push-u-origin-master www.quora.com/What-does-the-u-tag-mean-in-git-push-u-origin-master stackoverflow.com/questions/5697750/what-exactly-does-the-u-do-git-push-u-origin-master-vs-git-push-origin-ma
Great! A real master. Thank you! I had problem. I was able to reach this stage: git add . I runned the commands (ubuntu 16.04). git push -u “url” master, returned: "fatal: protocol '“https' is not supported" I'm a member of the project
On a Windows machine, is there any advantage to installing GitBash, or is the command prompt sufficient? CMD seems to be enough. Great video BTW - many thanks.
Hey Raghav, thanks for this video, it was very useful, just out of curiosity asking this question, why are we using the term "origin" when we are pushing the changes into master, also the master branch will be created automatically ?, when we create a repository ?
Nisha I believe you are talking about "git push -u origin" command: Let's unpack the terms and clarify common misconceptions: 1. "origin": Not synonymous with "master": "origin" refers to the remote repository where you originally cloned your project from. It's a friendly name you give to that particular remote location. Multiple remotes: You can have multiple remotes set up for a single project, each with a different name (e.g., "origin", "backup", "staging"). origin is just the default name used for the first remote you add. Independent of branch names: "master" is a branch name, a specific path within your local repository to store your code history. The remote repository can have different branches, not necessarily aligned with your local names. 2. Pushing: Sending changes, not creating branches: The git push command sends your local commits to the remote repository. It doesn't automatically create branches on the remote side. Existing branches on remote: If a branch named "master" already exists on the remote repository named "origin," your push will update that branch with your local commits. New branches on remote: If there's no "master" branch on the remote "origin," your first push with git push -u origin will create a new branch named "master" and push your local commits to it. This is why it might seem like "master" is created automatically, but it's actually a consequence of your first push command. 3. -u flag: Setting upstream: The -u flag in git push -u origin sets the "upstream" branch for your current local branch. This tells Git which remote branch your local branch should track and push to by default. Convenience for future pushes: Without -u, you'd need to specify the remote branch name (e.g., git push origin master) every time you want to push your local commits. -u sets it up once for efficient future pushing. Remember: "origin" refers to the remote location, not the "master" branch. git push sends local commits, not automatically creates branches. The -u flag sets the upstream branch for easier future pushes. I hope this clarifies the concept
Thanks Raghav, Actually I am new to Git,your videos are really useful.I am really appreciate your efforts.I have a question.We have a project repository in GitLab enterprise edition.now license expired.can we either move to Community edition or same enterprise edition downgrade to Community edition.which is the right approach? Could you please explain me? Even if you give any video it will useful to many people like me.Thanks again.
Hi Syed, I believe for this you should reach out to the support team or check for official documentation. I do not want to suggest something I am not sure of
Hi Raghav, thank you for creating such videos and its really helpful for novice techies like me. I am getting fatal authentication error while pushing to gitlab. Please suggest how to resolve. I am signing in through github account. I have removed credentials from windows credentials manager too. However still issue is persisting
Your videos are really helpful. You have done a great job by making it easy and clear instructions for a beginner. Lots of thanks, well wishes and love from 🇵🇰
I have a project folder on my gitlab and it has my previous homeworks and now I wanted to put another new 2 files inside the homework folder how to do that?
Assalam o Walaikum ...! Sir Raghav , your tutorial was amazing Thank you so much for this video.Thanks Alot kindly upload that how we transfer or move our project from one cloud server to another cloud based server.
Nurulsalbia The error message "src refspec master does not match any" typically occurs when pushing commits in Git. Let's address this issue step by step: 1. Commit Your Changes: - Before pushing, ensure that you've committed your changes. If you haven't, Git won't find any commits to push. - Use the following commands to stage your changes and create an initial commit: ```bash git add . # Stage all changes git commit -m "Initial commit" ``` 2. Push to the Correct Branch: - Nowadays, the default branch name is often "main" instead of "master." Make sure you're pushing to the correct branch. - If your repository uses "main," replace "master" with "main" in your push command: ```bash git push origin main ``` 3. Verify Your Remote URL: - Double-check that your remote URL is correctly set. You can view it using: ```bash git remote -v ``` - If needed, update the remote URL using: ```bash git remote set-url origin ``` 4. Create the Initial Commit: - If you haven't committed anything yet, create an initial commit as mentioned earlier. - Then push to the appropriate branch: ```bash git push origin main ``` Remember to adapt the branch name ("main" or "master") based on your repository configuration.
I really wonder, since all the operations can be done even without using command line, directly through eclipse and it is so easy, then why everyone focusses on giving command through cmd? Please let me know y commiting /clonning through eclipse options is not popular?
Hi Ankita, we eventually do a CI, CD process and there we always use commands. If you want to work on a single system in isolation, you can use GUI, else for integration with other process, go for cmd mode
Great work. If I am using gitbash to connect Gitlab and Github what parameter will identify that I intend to connect to Github or Gitlab because commands are same we didn't mention any server name or IP address. git config --global user.name “xxxx” git config --global user.name git config --global user.email “xxxx” git config --global user.email
Hi H V, Pls read this stackoverflow.com/questions/40549348/is-it-possible-to-use-github-and-gitlab-on-one-machine medium.com/@viviennediegoencarnacion/manage-github-and-gitlab-accounts-on-single-machine-with-ssh-keys-on-mac-43fda49b7c8d steveperkins.com/migrating-projects-from-github-to-gitlab/
Sir , I will do everything correctly. But I don't now why that folder is not showing...in my gitlab project b. I do lost time in different projects but ...anyone is not showing ... What the problem.. There is no error also .... Then why this happened??
Great Tutorial. I'm facing a problem when trying to push using git push -u ".git" master. It says, unable to access & FATAL : returns with a error code of 403. I've cross-checked the remote, its pointing to the correct URL. Also, I've added myself as a project member with 'Maintainer' previlage. But still no luck. And if i try ssh-keygen, its not generating '.pub' file.Any help is appreciated
One of the best tutorial channel in UA-cam I have ever seen. All steps are clearly shown and excellently explained. Well done, it makes lives of many developers easier
Wow, so happy to see this message. Thanks
After many hours of searching and frustration I finally land on this tutorial which made my night much better. Thanks a million!
Easy, simple and smooth! Well explained!
You're welcome Ahmed
Man, that tutorial is great, I absolutely love how clear everything is.
Glad to hear it Michał
Thank you very much! Your video is so much HELPFUL!!! It's very clear and resonable. I was compeletely overwhealmed by my professors' misleading video. His Dutch-English is so bad and his 10 min video cost me nearly 3 hours to figure it out, but still give up in the end. I have never thought Git was so much easy before. Thanks for your videos and lectures again!
You're very welcome!
Lot of respect for people like you who put efforts and invest time to make our life easier. Thanks a ton.
You're welcome Ankit
Yes sir lot of respect to you
I was looking to a couple of tutorials and didnt get anything clear. This one saved my life in 15 mins thank you!
Glad it helped!
I love your calmness and the way you teach, your videos have really helped me. Thank you very much.
I'm so glad and humbled to see your message Adeboye. I am learning & improving daily
Damn! It took me ages trying to figure this out by myself. But your videos have made it so much easier and removed a lot of stress from the process. Thank you very much.
So happy n humbled to see your message
Thanks, Raghav. It works. I successfully pushed files to Gitlab.
So happy to know Padma
You're the first tutorial that shows installation on both unix and windows, thanks so much!
Most welcome Niaaz
Needed to fast-track the install and this was very useful - thanks sir!
Glad it helped David
You are an amazing person man, thank you so much for the free and easily accessible knowledge. This has helped me a ton.
Glad to hear it!
Thank you. Your tutorials have been very helpful so far. I look forward to continuing this series.
You're very welcome Justin
Don't know why people waste time on TikTok and other Scrap content. where you can learn Tons of things from a Good content maker like you.
Thanks for the kind words Nikesh
Very good presentation. I'm a beginner and was able to understand each point very well.Thank you for sharing such an tutorial.
You are welcome Arrikath
Great work Raghav, really enjoy your videos. Very clear with great explanations and examples.
Thanks for watching Malcolm
I'm really thankful for this video and your efforts in making difficult things easier for me. It has really helped me and i was able to push my first project to Gitlab. I'm so happy and grateful for your help.....Thanks so much and may God bless you.
Glad to hear that Kyle
The best Gitlab tutorial I've ever watched thanks a lot you've made life easy
Love from Pakistan
Most welcome Ali
Amazingly Explained and that too very clear and word to word..Great efforts
Thanks a ton Sanjna
very well and patiently explained. Really helpful for complete beginner to start with gitLab. Thank you.
Most welcome Priya
Great Video clear and straight to the point. I have subscribed to your channel. Keep up the good work.👍🏿
Most welcome
Great video. This is true Beginner Tutorial. Keep up the good work in organizing and presentation
Glad it was helpful Vinod
very clear and concise looking forward to learning from you Raghav
Glad to hear that Mark, Can check my tutorials here - automationstepbystep.com/
Such a great teacher, this is the best tutorial I ever found. Thank you sir!!!!!!!
You're very welcome! Tsesang, humbled
Wow. This tutorial is awesome. You just explained all things to the detail. Please keep up the work ure great!
Thanks for watching
this is a awesome tutorial, best that i've found on youtube, every step is explained clearly, thank you for the work
You're very welcome Albert
Superb. You must be a great teacher.
So nice of you
Thanks for sharing this great course, very helpful.
Glad it was helpful!
Raghav thank you so much for this tutorial. You saved me, greetings from Costa Rica
Glad it helped
great video helped me a lot thank you. if possible can you please share a video for same thing with Google SSO account and GitLab repo and git
credential manager
Thanks Sridhar. Okay I will check. Meanwhile you can check from all videos here - automationstepbystep.com/
This was extremely useful! Thank you Raghav! 🙏
Most welcome Nora
super helpful and exactly what I needed!!! thanks so much!!!
Glad it helped!
best tutorials ever! i m glad I found your channel
Most welcome Kristina
This man is really awesome appreciate this man who is giving this tutorial for free ❤️
Thank you so much Mohan
Awesome tutorial, Thanks Raghav for changing many lifes
I am so humbled to see this message Naveen
It was very much useful, Thanks Raghav
Most welcome!
Good work bro. Thank you so much you made it look easier
Glad it helped
Hello sir I have a question please, How do you switch from windows to mac this easily on the same screen? Please can you provide me with the software you use? Thanks a lot.
Hi, I am using remote machines
Thanks Raghav for all your information
Most welcome Rakesh
unbelievably useful, thank you!
You're welcome Danielle
Hi Raghav, good clarity. A suggestion to add about "Add SSH key" in Gitlab
Noted Vijaya
Hi Raghav.. Thank you for your effort. Please try to make some more videos on Gitlab...because we have very less gitlab tutorials available on youtube. presently most of the companies are using gitlab. hope you will consider my request. Thank you. keep going well.
Noted, I will do a full series
Hi Raghav, after commit and push commands i got an error http access denied. so i saw solutions from stackoverflow on editing the credentials (username and password) from credential manager but it didnt work. i was getting the same error http access denied when i used push command. any suggestions ???
Issue is fixed, instead of the username which i was using i tried the email address which i used to register on gitlab and the password and it worked.
Happy to know that Gokul. Keep learning.
Thank you so much Raghav,your videos helped me a lot.
Most welcome Kavyasree
If your system crashes when you’ve ‘committed’ the files on your system but not ‘pushed’ yet to the repository, your changes are lost right ?
Hi Rajeev, this can help stackoverflow.com/questions/40236361/git-repository-broken-after-computer-crash
Thank you so much for the videos they are so clear
Thanks Marrio
Big respect for this
Thanks a lot
Thank you sir your videos really help me a lot.
Glad to know Syaz
best playlist ever helped a lot
Great to know this Diya
You are muster in teaching.
humbled.. thanks Pavel
if You type in Windows Explorator folder in address bar 'cmd' and hit Enter key, a Command Line Tool will open-up with CWD with was in address of active folder. :)
Yes, Thanks for adding this info
of course Raghav this was very useful, and to the point
Thanks a lot
Thank you so much very much useful for my projects
You are welcome 😊
Thank you so much sir, it was very helpful. Sir, is there any video on pull. And can you also put a tutorial of TDD please(specially the assertions topic)
You can check all here automationstepbystep.com/
heyy on the "git add ." there is nothing which gets added and still shows no commits what do I do?
Hi Anshika, git add . is to add changes to the staging area and does not commit. we have to do git commit separately after git add
I just love your efforts!
Thanks
Thank you .... Finally my problem solved...
Most welcome Prashant
thanks for such clear instructions
You are welcome Ahmad
Hey Raghav, Thank you for the tutorial. Really helpful. Is there a video to show us to switch between master and different branches and how to check-in to a branche?
Hi Sandeep, you can find some in github playlist. Pls check here - automationstepbystep.com/
Very informative. Keep up the good work!!!
Thank you Rohail
Thank you very much for all the tutorials. You sharing your knowledge is very helpful for many people including me.
I have one question here. What is sugnificance of -u option in the push command?
Thanks in advance 🙂
Hi Kumar, this will help you - stackoverflow.com/questions/18867824/what-does-the-u-flag-mean-in-git-push-u-origin-master
www.quora.com/What-does-the-u-tag-mean-in-git-push-u-origin-master
stackoverflow.com/questions/5697750/what-exactly-does-the-u-do-git-push-u-origin-master-vs-git-push-origin-ma
@@RaghavPal Thank you so much Raghav Pal 🙂
thank you so much for your help! much respect
You're welcome Eran
Great! A real master. Thank you! I had problem. I was able to reach this stage: git add . I runned the commands (ubuntu 16.04). git push -u “url” master, returned: "fatal: protocol '“https' is not supported"
I'm a member of the project
Hi Gabo, pls check this - stackoverflow.com/questions/53988638/git-fatal-protocol-https-is-not-supported
On a Windows machine, is there any advantage to installing GitBash, or is the command prompt sufficient? CMD seems to be enough. Great video BTW - many thanks.
Hi David, cmd prompt is enough
Excellent explanation
Glad it was helpful Sivarasan
thank you very much! your videos are very helpful!
You're welcome Ren
Hey Raghav, thanks for this video, it was very useful, just out of curiosity asking this question, why are we using the term "origin" when we are pushing the changes into master, also the master branch will be created automatically ?, when we create a repository ?
Nisha
I believe you are talking about "git push -u origin" command:
Let's unpack the terms and clarify common misconceptions:
1. "origin":
Not synonymous with "master": "origin" refers to the remote repository where you originally cloned your project from. It's a friendly name you give to that particular remote location.
Multiple remotes: You can have multiple remotes set up for a single project, each with a different name (e.g., "origin", "backup", "staging"). origin is just the default name used for the first remote you add.
Independent of branch names: "master" is a branch name, a specific path within your local repository to store your code history. The remote repository can have different branches, not necessarily aligned with your local names.
2. Pushing:
Sending changes, not creating branches: The git push command sends your local commits to the remote repository. It doesn't automatically create branches on the remote side.
Existing branches on remote: If a branch named "master" already exists on the remote repository named "origin," your push will update that branch with your local commits.
New branches on remote: If there's no "master" branch on the remote "origin," your first push with git push -u origin will create a new branch named "master" and push your local commits to it. This is why it might seem like "master" is created automatically, but it's actually a consequence of your first push command.
3. -u flag:
Setting upstream: The -u flag in git push -u origin sets the "upstream" branch for your current local branch. This tells Git which remote branch your local branch should track and push to by default.
Convenience for future pushes: Without -u, you'd need to specify the remote branch name (e.g., git push origin master) every time you want to push your local commits. -u sets it up once for efficient future pushing.
Remember:
"origin" refers to the remote location, not the "master" branch.
git push sends local commits, not automatically creates branches.
The -u flag sets the upstream branch for easier future pushes.
I hope this clarifies the concept
@@RaghavPal Thank you so much for your brief explanation, this clarified my doubts and gained more information.
Clear and usable!!!!! Thanks again!!!!!
You're welcome Leonia
Thanks Raghav, Actually I am new to Git,your videos are really useful.I am really appreciate your efforts.I have a question.We have a project repository in GitLab enterprise edition.now license expired.can we either move to Community edition or same enterprise edition downgrade to Community edition.which is the right approach? Could you please explain me? Even if you give any video it will useful to many people like me.Thanks again.
Hi Syed, I believe for this you should reach out to the support team or check for official documentation. I do not want to suggest something I am not sure of
@@RaghavPal thank you Raghav
hi Raghav, Nice Video! but can you help to integrate git lab with databricks
I will check on this
Very helpful Sir Thank You
Most welcome Ananya
Hai sir... I want to small clarification about branch
What is branch and how to tell the interview point of time about branch
Hi Radhika, You can check this video ua-cam.com/video/GZILYABgAoo/v-deo.html
12:43 Woah! Cool trick!
Glad it helped
Thanks man! you make my day... but what about branches?
Thanks Juan, I will cover branches as well, For now you can find it in Git & GitHub playlist - ua-cam.com/play/PLhW3qG5bs-L8YSnCiyQ-jD8XfHC2W1NL_.html
Thanks for your reply @@RaghavPal
Hi Raghav, thank you for creating such videos and its really helpful for novice techies like me. I am getting fatal authentication error while pushing to gitlab. Please suggest how to resolve.
I am signing in through github account. I have removed credentials from windows credentials manager too. However still issue is persisting
I have the same the same problem too i hope you get a reply
@@mesmerizing_recitations I have done work around and got it resolved. Instead of password I have given access token
Thank u and thank u so much brother🙏🏻🙏🏻
Most welcome Suresh
Your videos are really helpful. You have done a great job by making it easy and clear instructions for a beginner. Lots of thanks, well wishes and love from 🇵🇰
Most welcome
Best tutorial ever. Thank you!
You're very welcome!
I have a project folder on my gitlab and it has my previous homeworks and now I wanted to put another new 2 files inside the homework folder how to do that?
Hi Aleson, if the folder is tracked by git, you can add the files and then do commit and push
Excellent stuff thank you
Most welcome
Assalam o Walaikum ...! Sir Raghav ,
your tutorial was amazing Thank you so much for this video.Thanks Alot
kindly upload that how we transfer or move our project from one cloud server to another cloud based server.
My project has frontend PHP and Backend PhpMyAdmin
Thanks for watching Marina, I will try to add session on that
Awesome explanation....hats off to you sir.
You're welcome Sujit
This is really useful, appreciate 🙏💕
Most welcome
This was a great help Raghav :-)
Happy to know Tanushri
For us you are doing greate work,Thanks a lot
You're welcome Vasu
Super👍
Thank you 👍
I got an error src refspec master does not match when I tried to push the file..how can I fix this?
Nurulsalbia
The error message "src refspec master does not match any" typically occurs when pushing commits in Git. Let's address this issue step by step:
1. Commit Your Changes:
- Before pushing, ensure that you've committed your changes. If you haven't, Git won't find any commits to push.
- Use the following commands to stage your changes and create an initial commit:
```bash
git add . # Stage all changes
git commit -m "Initial commit"
```
2. Push to the Correct Branch:
- Nowadays, the default branch name is often "main" instead of "master." Make sure you're pushing to the correct branch.
- If your repository uses "main," replace "master" with "main" in your push command:
```bash
git push origin main
```
3. Verify Your Remote URL:
- Double-check that your remote URL is correctly set. You can view it using:
```bash
git remote -v
```
- If needed, update the remote URL using:
```bash
git remote set-url origin
```
4. Create the Initial Commit:
- If you haven't committed anything yet, create an initial commit as mentioned earlier.
- Then push to the appropriate branch:
```bash
git push origin main
```
Remember to adapt the branch name ("main" or "master") based on your repository configuration.
I really wonder, since all the operations can be done even without using command line, directly through eclipse and it is so easy, then why everyone focusses on giving command through cmd? Please let me know y commiting /clonning through eclipse options is not popular?
Hi Ankita, we eventually do a CI, CD process and there we always use commands. If you want to work on a single system in isolation, you can use GUI, else for integration with other process, go for cmd mode
@@RaghavPal for CI/CD ( jenkins) are there no gui commands?
Yes, only commands no gui of the tool or ide
@@RaghavPal Thanks for replying sir
Great work. If I am using gitbash to connect Gitlab and Github what parameter will identify that I intend to connect to Github or Gitlab because commands are same we didn't mention any server name or IP address.
git config --global user.name “xxxx”
git config --global user.name
git config --global user.email “xxxx”
git config --global user.email
Hi H V, Pls read this
stackoverflow.com/questions/40549348/is-it-possible-to-use-github-and-gitlab-on-one-machine
medium.com/@viviennediegoencarnacion/manage-github-and-gitlab-accounts-on-single-machine-with-ssh-keys-on-mac-43fda49b7c8d
steveperkins.com/migrating-projects-from-github-to-gitlab/
Hi, Thanks for the tutorial. I am getting this error - The requested URL returned error: 503
when trying to push the code. Any solution?
Hi Harmeet, will need to check the steps and details, can check some online examples
Sir , I will do everything correctly.
But I don't now why that folder is not showing...in my gitlab project b.
I do lost time in different projects but ...anyone is not showing ...
What the problem..
There is no error also ....
Then why this happened??
Hi Saahil, will need to check the logs and details
Thanks for your effort
Most welcome
Great Tutorial. I'm facing a problem when trying to push using git push -u ".git" master. It says, unable to access & FATAL : returns with a error code of 403. I've cross-checked the remote, its pointing to the correct URL. Also, I've added myself as a project member with 'Maintainer' previlage. But still no luck. And if i try ssh-keygen, its not generating '.pub' file.Any help is appreciated
Hi Ahsan, try using the repo url in the git push command
If possible, would love to see multi-user check-in status report on GitHub. Want to see how those look on GitHub URL location?
Hi Prasanna, pls help me with some more details or a specific scenario, so I can explain in a session
Thanks for tutorial. Can we add custom field in the project create page?
Hi Karthick, Not exactly sure on custom fields, but you can use templates docs.gitlab.com/ee/gitlab-basics/create-project.html
Great tutorial -- thank you
You are welcome Sreejith
Thank you fro this helpful video. I keep getting an error of "Permission Denied" when using git init command. please help
Hi Zartaj, it can be due to directory permissions on that folder. Pls check stackoverflow.com/questions/41546140/permission-denied-for-git-init
Nice Explain
Thank u so much
You are most welcome Iqbal
enjoyed your teaching.. thanks :)
Glad you enjoyed it Avinash
The Valuable One, Thank You So Much :-)
Most welcome Amar