How to connect VSCode Salesforce Project to GitHub ? | Getting Started with Version Control System

  Рет қаралды 44,070

SFDC Stop

SFDC Stop

Күн бұрын

Пікірлер: 70
@2desuadero
@2desuadero 2 жыл бұрын
Thank you, plain and simple, straight foward with no cocky commands and fast typing
@rahulsethi8914
@rahulsethi8914 4 ай бұрын
Beautiful video man. You shared all the aspects of it. It is very rare to find such insightful videos. Thank you.
@rahulsethi8914
@rahulsethi8914 4 ай бұрын
@sfdc please make a video on rollbacks deployment from github.. how to stablise the prod env if something goes wrong… what should be the strategy
@sfdcstop
@sfdcstop 4 ай бұрын
For rollbacks you basically need to switch to the previous state of the repo and deploy it again to override the things. It's a more complex task as we might need to delete some files as well. I'll see if I can create something on it and will share :) For now, we have our apex videos coming in regularly, feel free to check them out!
@sfdcstop
@sfdcstop 4 ай бұрын
Coding with Confidence: The Fun Way to Learn Salesforce Apex: kzbin.info/aero/PLuL63vr-9xHzmee9NPhpowP2LiVF0oAE3
@architapatnaik8116
@architapatnaik8116 4 жыл бұрын
Its so beautifully explained. Amazing work by Rahul. Keep doing the good work.
@sfdcstop
@sfdcstop 4 жыл бұрын
Glad you liked it Archita 😊 Make sure to share it in your network as well...Keep Learning 👍
@SFAgents
@SFAgents 2 жыл бұрын
very good explanation. This video provides detailed information thank you rahul.
@sfdcstop
@sfdcstop 2 жыл бұрын
You're welcome!
@lsri6590
@lsri6590 3 жыл бұрын
Awesome explaination
@ashwinishastrakar8795
@ashwinishastrakar8795 Жыл бұрын
Hi Really appreciate the way you explain, very simple and understanding. Thanks 😊
@abhishekdeshpande5205
@abhishekdeshpande5205 3 жыл бұрын
Thank you. Really helpful.
@sfdcstop
@sfdcstop 3 жыл бұрын
Happy to know that it was helpful Abhishek #KeepLearning
@chino-bw5wx
@chino-bw5wx Жыл бұрын
Thanks a ton, i am new to this and this was much help
@niteshj_
@niteshj_ 3 жыл бұрын
very good thorough explanation!
@sfdcstop
@sfdcstop 3 жыл бұрын
Glad it was helpful!
@onesmartthiefforheat
@onesmartthiefforheat 3 жыл бұрын
This is very helpful. Thank you!
@AshokBhushanAB
@AshokBhushanAB 4 жыл бұрын
A very nice, simple explanation. Thank you for this video !
@sfdcstop
@sfdcstop 4 жыл бұрын
Glad it was helpful!
@Yoursonlyadi
@Yoursonlyadi 4 жыл бұрын
Superb Explanation ...Kudos!! :)
@sfdcstop
@sfdcstop 4 жыл бұрын
Thanks Aditya 😊 make sure to share it in your network as well..!!
@rajnishsingh8871
@rajnishsingh8871 4 жыл бұрын
Thanks for this Tutorial. Explain in Proper manner. please let me know if you connect Gitlab to Jenkins
@sfdcstop
@sfdcstop 4 жыл бұрын
I'll create a similar tutorial in future videos 👍
@311nida
@311nida 4 жыл бұрын
Everything is clearly explained!! Keep up the good work :-)
@sfdcstop
@sfdcstop 4 жыл бұрын
Thank you Nida :-)
@pradeep27101991
@pradeep27101991 4 жыл бұрын
good explanation , Thanks, QQ - in the entire video, you have not mentioned about using GIT but in the last, you mentioned about GIT, I might be wrong here, please explain the purpose of using GIT.
@sfdcstop
@sfdcstop 4 жыл бұрын
Thank you Pradeep, In the whole video we're using git commands to interact with GitHub. I forgot to mention it in the beginning that you should have git installed in your system. That's why I added a disclaimer in the beginning and reminded about installing git at the end as well.
@mahendraroyal3321
@mahendraroyal3321 3 жыл бұрын
Thanks for video..can you make git installation?
@sfdcstop
@sfdcstop 2 жыл бұрын
Okay, I'll create a video on that 👍
@JaimeBIDtravel
@JaimeBIDtravel 4 жыл бұрын
Great work! Super useful. For some reason I have a discrepancy between branches, VS Code was master but was pushing to Main in Github. I fixed it now, but I am not sure how this happened as I followed all your steps.
@sfdcstop
@sfdcstop 4 жыл бұрын
Happy to hear that it's fixed :-) Good Job!
@JaimeBIDtravel
@JaimeBIDtravel 3 жыл бұрын
@@muhammadghausali4331 hi, from vscode you can choose the branch to commit. Also it is easy to merge branch and solve it
@eneidarevueltas5895
@eneidarevueltas5895 4 жыл бұрын
Thanks for this, very helpful! :)
@namanshetty2781
@namanshetty2781 2 жыл бұрын
Hi Sir. Thanks for this wonderfull session. I have a Project folder in VS Code which has LWC, Classes, etc. And i want only selected ones to be deployed to GIT from this folder. How can this be done
@sfdcstop
@sfdcstop 2 жыл бұрын
Hey Naman, glad you liked it. Mention the files/folders that you don't want to be tracked in .gitignore file and they won't be pushed.
@namanshetty2781
@namanshetty2781 2 жыл бұрын
@@sfdcstop Thanks for the reply . Can you please share any reference related to this I'm not getting it
@CadavreHOPHOP
@CadavreHOPHOP 11 ай бұрын
Hey nice, How to set up CI with SF now ?
@payeldebku
@payeldebku 3 жыл бұрын
Thank you very much for this nice video. When I am trying to click the "Initialise Repository" , I find that the option is disabled. I have installed git in my local pc and I have also created an account . I am sure that there are some other steps that need to be followed in order to make that option enabled. Do you have any guidelines on that or refer to some blog/website that lays down those steps.
@sfdcstop
@sfdcstop 3 жыл бұрын
Hi Debkumar, if you've installed git and it's present in your PATH environment variable you can initialize git in any folder, the command which is used behind the scenes by vscode is "git init" so, you can open your project folder in cmd/terminal and run git init command to see if that works, if not, there is some issue with your git installation. Hope that helps!
@payeldebku
@payeldebku 3 жыл бұрын
@@sfdcstop Thank you very much for your prompt response. You were right as Git was not installed and after installing that and setting up the path variable , I can see that option enabled. However whenever I write a command say git init or git log in the terminal for VSCode it always comes back with the error "git : The term 'git' is not recognized as the name of a cmdlet, function, script file" . Do you know how to fix that ?
@sfdcstop
@sfdcstop 3 жыл бұрын
Either there is an issue with the path or the git is not installed properly. Have you tried restarting your system after installation?
@ADITYASINGH-ih2hz
@ADITYASINGH-ih2hz 3 жыл бұрын
Can git solve the problem of overwriting codes when two or more developers are working on the same component? If so, how? Thanks in advance
@sfdcstop
@sfdcstop 3 жыл бұрын
Hi Aditya, yes, we can solve it. You just need to commit your changes each time you work on a component so that you can go back to the previous commit whenever needed.
@ADITYASINGH-ih2hz
@ADITYASINGH-ih2hz 3 жыл бұрын
@@sfdcstop thank, once again
@taskmaster7432
@taskmaster7432 4 жыл бұрын
Awesome KT.
@sfdcstop
@sfdcstop 4 жыл бұрын
Happy to know that you liked it Prathik, do share it as well :-)
@chandrayetukuri
@chandrayetukuri 4 жыл бұрын
Hi Rahul thanks for the video. Could you please tell me why not all the folders are not created in vs code. I mean only few folders like profiles and apex etc but not all..Is it something to.do with package.xml?
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi Chandra, when we're dealing with scratch orgs, package.xml doesn't play a role. It's just sfdx automatically add the most important folders that'll be required for sure. Just in case, you're doing something in scratch org for which the folder doesn't exist. It'll automatically be created when you take a pull. So, nothing to worry...!!
@chandrayetukuri
@chandrayetukuri 4 жыл бұрын
@@sfdcstop Thanks for your response. Could you please elaborate it with an example.
@sfdcstop
@sfdcstop 4 жыл бұрын
Give it a try yourself, if it doesn't work out...I'll share a demo with you. Connect your vscode project with a new scratch org, add some standard configuration for which you have no folder in vscode and take a pull.
@chandrayetukuri
@chandrayetukuri 4 жыл бұрын
@@sfdcstop will try and let you know mate.
@vijaykanugonda8184
@vijaykanugonda8184 4 жыл бұрын
Hi Its very clear explanation Thank you. we can do the same with out scrach org mean create project with manifest and authorize to org? Init repository and push to github?
@sfdcstop
@sfdcstop 4 жыл бұрын
Yes, absolutely...!! You are right Vijay, you can do that with any salesforce org. Give it a try..!!
@kumararavuri3042
@kumararavuri3042 4 жыл бұрын
Hi ..Very good explanation.Appreciate the time you put in .Can you show for the existing repo rather creating new one and connecting to the exisitng non scratch org?
@sfdcstop
@sfdcstop 4 жыл бұрын
Hi...thanks for your suggestion, Please add it here:- docs.google.com/forms/d/e/1FAIpQLSdoWO6d_vWFmGIKRdAJrMeXSy5aEdBm2tozHYQ2QCer-RgH5Q/viewform so that I don't forget it and will consider it for future videos. I have a similar video about connecting with an existing repo, if it can help:- kzbin.info/www/bejne/fZvGf3tuoditga8.
@sudhanshushekhar1919
@sudhanshushekhar1919 3 жыл бұрын
Hi Rahul, Thanks for the awesome videos. Could you please clarify my below doubt? Once we push the latest code to Git Hub from our VS code and then if we want to deploy that same code/changes to another/prod org using the Ant migration tool as per my understanding Ant migration tool is used for migration from one org to another so how will the Code present in GitHub will be available in source org.
@sfdcstop
@sfdcstop 3 жыл бұрын
Hi Sudhanshu, ANT can be used to fetch metadata from one org and deploy to another org. It mainly depends on the format you're using if you want to pull code or metadata from GitHub and push it to org. In this video we're using sfdx cli to interact with Salesforce metadata. You can use sfdx as well to deploy metadata to production.
@sfdcstop
@sfdcstop 3 жыл бұрын
I have created SFDX Deploy Tool which will help you to deploy the changes from one Salesforce org to another. You can have a look at this series to understand that- One Step Salesforce Deployment | SFDX Deploy Tool for Windows: kzbin.info/aero/PLuL63vr-9xHyXZ2NzZSdm6gdSVABTJxlh
@sudhanshushekhar1919
@sudhanshushekhar1919 3 жыл бұрын
@@sfdcstop Hi Rahul, Thanks for your reply I have already watched this video along with most of your videos related to deployment :) I am not sure if this tool can be used in actual projects due to copyright?
@sudhanshushekhar1919
@sudhanshushekhar1919 3 жыл бұрын
@@sfdcstop Thanks a lot for clarifying my doubt!
@sfdcstop
@sfdcstop 3 жыл бұрын
You can use this tool in actual projects as I have developed it myself and have open sourced it on GitHub. So, it's freely available to everyone for use and even the source code is available on GitHub. Feel free to use it anywhere.
@AmitSingh-rd9qx
@AmitSingh-rd9qx 3 жыл бұрын
Awesome
@sushantkaran6489
@sushantkaran6489 3 жыл бұрын
Hi, Kindly let me know how to push the VS Code folder to an existing repo
@sfdcstop
@sfdcstop 3 жыл бұрын
Hey Sushant, You can directly clone the repo and open that folder in VSCode. It'll be connected to repo automatically. If you still need to connect a folder to repo you can open the folder in cmd/terminal and then use "git remote add origin " command to setup a origin. Your repo is now connected as origin. Now you can just do git pull or push while interacting with the repo
@crk123ful
@crk123ful 3 жыл бұрын
How to make sure you confirgure your user.name and user.email in git. I am doing it in Mac for 1st time
@sfdcstop
@sfdcstop 3 жыл бұрын
Hi, Use this in your terminal: git config --global user.name git config --global user.email
@alanicola111
@alanicola111 3 жыл бұрын
thank you
@rajnishsingh8871
@rajnishsingh8871 4 жыл бұрын
Great
@VikramSinghYadav-fr2mm
@VikramSinghYadav-fr2mm 5 ай бұрын
kuch b samj nhi aaya
@gopi149
@gopi149 11 ай бұрын
Great explanation
Intro to Git for Salesforce using VSCode
22:31
Mitch Routt
Рет қаралды 16 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Using Git & GitHub in VSCode: Stage, Commit, and Push
14:51
Max Rohowsky (Max on Tech)
Рет қаралды 83 М.
Getting Started with Git on Salesforce
16:57
Salesforce Developers
Рет қаралды 23 М.
Introduction to Git and GitHub for Salesforce Developers
22:35
Samarth Ahuja Tech Videos
Рет қаралды 8 М.
Git Branches and Pull Requests for Salesforce
13:31
Mitch Routt
Рет қаралды 5 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН