How do i check in code in Git Hub from Developer console.
I have been trying to browse, i saw we have to sync code to eclipse and then drop files to Git Hub.
Can anyone suggest me a standard way to do this please
The Salesforce Developer Console based out the UI cannot integrate with Git Hub to check in/out code. You'll have to do it with files stored locally either using your IDE or terminal. This is the same as working with any Git repo and really is unrelated to Salesforce.
There is a new feature called Salesforce DX that has a tighter integration with git repos, it's going beta in Summer 17.
Related
I'm trying to clone a repository from GitHub to PyCharm, and so I looked up how to do that. I looked at this website, and it told me to go to
Choose VCS | Checkout from Version Control | GitHub on the main menu. PyCharm establishes connection with GitHub using the login and password you registered. Upon establishing connection, the Select Git Hub Repository to Clone dialog box opens.
From the Repository drop-down list, select the source repository to clone the data from.
But, when I go to VCS | Checkout from Version Control, there is no GitHub, only these options:
So I looked at this answer to this question, which was similar but on Intellij (I hope PyCharm and Intellij work similarly), and the answer was to
Go to File > Settings > Plugins and search for GitHub and Git Integration then install those. A restart might be required in order to apply the changes.
(answer was written by Enzokie). So I went there and those were both installed. What is wrong and why can't I clone a repository from GitHub?
GitHub is a web-based hosting service for version control using Git.
I copied that from their webpage.
The version control system you want to use is Git. And you will connect to GitHub, (which also uses Git), to clone the project you want.
So, select the Git option, enter the project URL and voila!
Another version control web-hosting service who also uses Git (but also Mercurial), is Bit-Bucket.
This Wikipedia page explains what Git is.
I am new to developing Google Sheets scripts. I have code forked from krlaframboise/SmartThings and would like to make some additions and commit those to my Github fork. I can obviously edit in the sheet script editor and paste those back to my git repository but that doesn't seem ideal. What are some good patterns for developing Google Sheets scripts and tracking in Github?
Best solution I've found is GAS Github Assistant.
It's a Chrome Extension that integrates with the Apps Script IDE and allows you to pull/push code from/to your repos at the click of a button.
It not only supports Github but Bitbucket as well.
UPDATE 1/30/2018
Apps Script now has a command-line interface called clasp that offers similar functionality.
If your changes are data changes that should correspond to code changes then you should follow the pattern that good database administrators have use for years.
Make the updates with code as an upgrade script checked into source. You should also make a downgrade script that undoes the changes and check it in.
If making the changes programmatically is a headache, then make the two files simply contain instructions on how to make the data changes. Include an upgrade and downgrade instruction file with each major release.
I wrote a tool to pull and push google-apps-script code from/to from Google Drive. It avoids having to copy paste code.
Your use case would be as simple as this:
$ gas pull && git commit -m 'Some changes I made'
I am trying to use a team services account to store other related documents for a project such as some spreadsheets. I want the client to have access to it, but they are not programmers so I am not wanting them to use VS.
The client can access it directly without a problem and can download files, the biggest issue is they will need to be able to upload files as well. Without using a client of some sort they are limited to 10mb or less which won't work for them.
I cannot seem to get github for the desktop to access my online repository unless I first go into VS and clone it.
I am trying to avoid having to walk the client through doing that and would like to be able to use a GUI like github desktop from end to end.
We are all in a Windows environment.
I can create a new repository in github desktop, but cannot seem to figure out how to connect it to my remote (I can't find the URL for the remote anywhere).
I feel I am so close but just missing a couple items, any push would be appreciated.
GitHub Desktop is for GitHub. GitHub is a Git repository hosting service. Not surprisingly, the GitHub tool only works with GitHub.
You can use any general-purpose Git client to interact with VSTS Git repos. SourceTree is good.
You can use some git GUI or git command line to operate local repo.
Git GUI: as Daniel Mann said, you can use soucetree, or tortoiseGit etc.
Git command line:
you can download git here ->
git clone https://account.visualstudio.com/_git/projectname ->
enter email and password to clone ->
git add . (when you add some files) ->
git commit -am 'message'(commit the changes you make) ->
git push(push your commits into VSTS git repo) ->
git pull(pull VSTS git repo changes to localt).
I am just closing this out, thank you to both folks who did answer. I understand that I am using GIT and that GitHub Desktop is for Github. I was looking for the best way to work with a Github repository without using VS and how to access the team services repo for a client of mine. I set him up with Gitkraken which is working. I was never able to figure out how to get Github Desktop to properly clone and push items, but I did not spend a ton of time in it once I used Gitkraken.
Thanks again for taking a swing at it.
I accepted the answer I did because suggesting using the command line at least shows a understanding of my question and what I was looking for.
I know I am late to the game but I can confirm that tortoise git and getext also work fine with VSTS
I have a Visual Studio Code project for an Angular2 app created using AngularCli (webpack version). Out of the box, AngularCli will generate a new project for you and check it into Git. How do you know which GitHub account it's using? I cannot find any information in Visual Studio as to what GitHub account is controlling the code history. I can make changes to the code and check it in using Visual Studio Code's embedded Git functionality. I've logged into GitHub using my account, but I do not see this new project. Where do you find information on what GitHub account either AngualrCli and/or Visual Studio Code is using?
How do you know which GitHub account it's using?
It doesn't need to use any github account to create a git repo. It's just calling git init, followed by some git add/git commit commands. You can do those without github credentials. After the tool does its job, you have a fully-functional local git repo.
You only need github account when you try to push code to github, which you did not yet do, I assume. You don't need github credentials to work with local repository (view history, add new commits, branch, merge, etc.)
Recently I tried out the new TFS-Service, and really liked the built in Scrum template for project management, and the new ability to create a team project managed with Git.
It would seem that the Git integration is only possible when using Visual Studio on windows though. Using Eclipse (with the Team Explorer plugin) I was unable to work with a git-based team project.
Is this really the case?
Heres what I've tried:
In TFS Service, I have a git-based team project with some commits in it.
In Eclipse, I connected to the team project, but it seems I can't pull or even see the source in any way. Source control explorer doesn't show any code (or any paths even).
In TFS, I created a new git-based team project. In Eclipse I created a new project and used Team -> Share... to try and get the code into TFS. But selecting TFS there doesn't seem to have the disired effect: it doesn't understand that it's a git-based team project, and so it doesn't try to push the code with git, but upload it to a new path ($/some/path/here/).
So is that it, or perhaps there's a workaround? Maybe I did something wrong?
BTW - I know about using TFS with git-tf, and I'm OK with that option, but it's not what I'm asking.
Thanks.
We're working on improving this for the next major version of Team Explorer Everywhere (TEE), but this is what you'll want to do today.
Eclipse already has a full featured Git version control provider in the eGit plugin. This is installed in many versions of Eclipse but if you do not have it you can install it from here:
http://marketplace.eclipse.org/node/1336
To use eGit today against the hosted service you must enable alternate credentials in TFS (click on your name in the top right corner, My Profile, Credentials then enable and configure your credentials).
Once this is enabled you can point eGit at your service account repo and you are good to go. In the Import or Share wizards pick Git and then follow through th eGit dialogs.
When you make a commit, if you add #123 into the work item comment it will associate the commit with that work item number when you push it to the server.
Now, I mentioned that we are trying to make this better. What we are aiming to do is show you both your TFVC and your Git related projects when you import and share and if you have picked a Git repo then we'll help you get your credentials set up, clone it and get the version control parts of Eclipse hooked up to eGit (assuming you have eGit installed). We'll also make sure that the other Team Explorer Views (such as work items, builds etc) all work great and that links to Git commits etc do the right thing. Hope that makes sense - but if anyone wants to talk more about how Git projects will work in future versions of Team Explorer Everywhere then feel free to drop me a mail (martinwo#microsoft.com)