How to Add & Upload a New Project to an Existing GitLab repository

  Рет қаралды 73,495

Cameron McKenzie

Cameron McKenzie

Күн бұрын

Hey fellow lovers of GitHub! I actually just updated this video with some better, safer and easier ways to upload your existing project to GitLab. Please check this video out and give it a thumbs up!
• How to Push an Existin...
Using GitLab? Need to push a new project to your existing GitLab repo? It's not hard to do. In this quick GitLab push to remote tutorial, I'll show you how to take an existing project, add it to Git locally, and then connect that local Git repository to an existing GitLab repository on the server. Honestly, it's not hard to push a new project to an existing GitLab repository. Just a few git add and git remote commands will do it!

Пікірлер: 54
@kabelservice8450
@kabelservice8450 8 ай бұрын
You're the man! Holy Cow you have made this stuff so much easier than what the text guides have to offer through gitlab.
@cameronmcnz
@cameronmcnz 8 ай бұрын
Glad to help! I've got a long form GitLab and Git tutorial coming out soon. Would love your feedback when it comes out!
@coursesforintelligence
@coursesforintelligence Жыл бұрын
"Don't say I'm afraid of commitment, I commit all the time" 😂, thank you for that - genuinely the first time I smiled without trying all day
@polizona
@polizona Жыл бұрын
at work asked me "what r u watching?"
@abdulalinawrozie8070
@abdulalinawrozie8070 10 ай бұрын
Thank you so much, after spending hours on the other websites I finally figured out how git/gitlab works. very simple and straight-forward explanation. Thank you once again. ❤
@cameronmcnz
@cameronmcnz 10 ай бұрын
Thanks for the kind words! This is actually the proper way to do it, but there’s an easier way. Just clone, copy your files into the cloned repo, commit and push. No messing with remote refs. I’m going to redo this video and show both ways. Too late for you maybe but others might enjoy it. Thanks for making me smile this morning!
@doaamarshal1835
@doaamarshal1835 5 ай бұрын
Well, you're my hero, honestly the easiest time to understand these things, I just succeeded the first time and have been trying since last night! Keep at it
@cameronmcnz
@cameronmcnz 5 ай бұрын
Happy to be of service! I actually updated this video to show some alternate ways to push up without a force, but if the approach worked for you, then that's awesome! www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/How-to-add-and-push-an-existing-project-to-GitLab
@alishbajaved8022
@alishbajaved8022 Жыл бұрын
For those still having issues Go in your project folder in file explorer and delete the git hidden file already created Perform all these instructions described in the video again and you're good to go
@mohiburrahman5639
@mohiburrahman5639 Жыл бұрын
after 2 days i have sloved my problem!! thank you somuch!!
@Sean-gx1sf
@Sean-gx1sf Жыл бұрын
Dude this was really useful, thanks for making this
@San2shsingh
@San2shsingh Жыл бұрын
Getting error as : ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'gitlab..........'
@AaAa-of1lp
@AaAa-of1lp Жыл бұрын
Thank you so much
@cameronmcnz
@cameronmcnz Жыл бұрын
Glad I could help. Git and GitHub gets much easier after this point, I promise!
@ioanabiris3472
@ioanabiris3472 Жыл бұрын
Thank you!
@cameronmcnz
@cameronmcnz Жыл бұрын
My pleasure!
@glgurel_21598
@glgurel_21598 Жыл бұрын
this is best tutorial, thank you Cameron
@pravin1877
@pravin1877 Жыл бұрын
God bless you exactly what I was looking for Thanks a lot
@yxs8495
@yxs8495 Жыл бұрын
I think you mean add a repository to a Project. The Project is in the remote Gitlab server and the repo is usually on your local machine. Your push the repo to the Project. You usually create a folder on your local machine and type in git init. This creates the repository. Which you then push to the Project. Every Project has a repo ... in addition to other things e.g. wiki, issues, people permissions etc ...
@rishu_rvlogs5113
@rishu_rvlogs5113 2 ай бұрын
thanks for the video.
@cameronmcnz
@cameronmcnz 2 ай бұрын
GitLab makes it easy!
@mohamedtarib603
@mohamedtarib603 Жыл бұрын
Thanks well explained what i have been looking for
@sakarkhatiwada83
@sakarkhatiwada83 2 жыл бұрын
Thanks man, It works perfectly without any error.
@rochanarathnayake
@rochanarathnayake Жыл бұрын
Thank You Sir This helped me lot ❤❤
@cameronmcnz
@cameronmcnz 7 ай бұрын
Please check out the updated tutorial. It shows a few easier approaches to upload new projects to GitLab, while avoiding any forced pushes which can be dangerous. Check it out! kzbin.info/www/bejne/hZeknWmIa994rrcsi=jU3nNdShKEfCxFgF
@omarm.k.shehada3959
@omarm.k.shehada3959 2 жыл бұрын
Appreciate that. Thank you. I have a couple of questions, if I may: I work on a project locally, and managed to push it remotely and everything is going well. Pushing and pulling. My question is, how can I pull changes from other repos? And from same repo, but different branch?
@cameronmcnz
@cameronmcnz 2 жыл бұрын
Is the other repo the same project or a different one? Easy way? Just pull the other project, delete its hidden .git directory, create a new branch in your base project, copy the files over, and do a commit and push. Voila! Your other project is now on a separate branch of the base project.
@omarm.k.shehada3959
@omarm.k.shehada3959 2 жыл бұрын
@@cameronmcnz same project of course but from different developer. That would help. Thank you.
@cameronmcnz
@cameronmcnz 2 жыл бұрын
@@omarm.k.shehada3959 Yeah, like you could configure remote references etc and do it the 'git way.' But this is a good cheat way to just get it done simply and quickly.
@jesselynrustam
@jesselynrustam 2 жыл бұрын
super helpfull! Thanks!
@cameronmcnz
@cameronmcnz 2 жыл бұрын
Glad I could help you out!
@victorbrezoev7625
@victorbrezoev7625 2 жыл бұрын
Very useful !
@IrinaStegniy
@IrinaStegniy Жыл бұрын
Thank you! Wery simple and soooo useful!!!
@AjingPPP
@AjingPPP Жыл бұрын
Really saved my ass😂 thanks a lot!
@fluttercompiler1693
@fluttercompiler1693 2 жыл бұрын
Wow! Thanx)
@mohiburrahman5639
@mohiburrahman5639 Жыл бұрын
you are super!!
@interesting731
@interesting731 Жыл бұрын
BOOM thanks!!!
@ismailzaidi7967
@ismailzaidi7967 Жыл бұрын
thank you
@martinchromecek2928
@martinchromecek2928 2 жыл бұрын
Thanks!
@bekzodgayratov
@bekzodgayratov 4 ай бұрын
Thanks
@triuc8755
@triuc8755 Жыл бұрын
thankssssssssssssssssssssssssssssss. I love you.
@mioszstachlewski458
@mioszstachlewski458 Жыл бұрын
nice video :D
@namnguyen-cd2om
@namnguyen-cd2om 6 ай бұрын
thank you
@cameronmcnz
@cameronmcnz 6 ай бұрын
Thanks for watching! I actually have an updated tutorial on this for some ways to do this without a forced push too!
@victorananth
@victorananth 10 ай бұрын
It is pushing to my GitHub :(
@primavera919
@primavera919 2 жыл бұрын
Damm SVN is much easier but companies still want to migrate to Git, that sucks
@cameronmcnz
@cameronmcnz 2 жыл бұрын
Once you get more familiar with Git it starts to make a lot more sense. Give it a chance and you'll learn to love it!
@bahauddinchishte
@bahauddinchishte 2 жыл бұрын
Hey, My updated code was successfully pushed to GIT but I do not find any updated code/file on the repository? Also, I waited and reload my page but the file did not showing up :( Can you please help me with this?
@cameronmcnz
@cameronmcnz 2 жыл бұрын
Do you have multiple branches? The code might be in a different branch?
@bahauddinchishte
@bahauddinchishte 2 жыл бұрын
@@cameronmcnz Hey, I solved it. Thanks!
@cameronmcnz
@cameronmcnz 2 жыл бұрын
@@bahauddinchishte Awesome! What was it?
@bahauddinchishte
@bahauddinchishte 2 жыл бұрын
@@cameronmcnz I don't know actually. But After creating a new deposit and changing the shell from Bash to Zsh, it works fine now.
@margheritacodemo5039
@margheritacodemo5039 4 ай бұрын
i love you
@setarehmdghlch3155
@setarehmdghlch3155 Жыл бұрын
wonderfull
How to Push an Existing Project to GitLab
19:14
Cameron McKenzie
Рет қаралды 6 М.
How to upload a project / folder to GitHub
9:14
Abstract programmer
Рет қаралды 81 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 116 МЛН
ЭТО НАСТОЯЩАЯ МАГИЯ😬😬😬
00:19
Chapitosiki
Рет қаралды 3,3 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 5 МЛН
How to add a new project to an existing Bitbucket repository
5:46
Cameron McKenzie
Рет қаралды 29 М.
Push a New Local Branch to a Remote GitLab Repository
4:52
Cameron McKenzie
Рет қаралды 10 М.
Setup Git for using GitLab (including SSH key) - Windows 10
13:42
Valentin Despa
Рет қаралды 177 М.
How to add a new project to an existing GitHub repository
5:45
Cameron McKenzie
Рет қаралды 93 М.
How to Commit and Push to Github from VSCode (2024 Update)
5:06
The Code City
Рет қаралды 76 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 116 МЛН