https://netbeans.org/kb/docs/ide/git.html
https://code.visualstudio.com/docs/editor/versioncontrol
https://www.jetbrains.com/help/pycharm/version-control-integration.html
https://helpx.adobe.com/uk/dreamweaver/using/git-support.html
https://desktop.github.com
Below are some common git commands;
To checkout a file or folder on svn;
svn checkout http://192.168.8.5/mcc/mccweb mccweb
where the entire contents of mccweb will be create in a directory called mccweb. You need not create the directory beforehand.
To initialize a local repository;
git init
To add files to the repository;
git add .
To add a file to the repository;
git add filename
to commit said files;
git commit -m "some comment"
Or alternatively on svn;
svn add filename
svn commit -m "some comment"
svn commit myFile -m "some comment"
To remove files from repository;
git rm --cached file
To exclude files, edit;
.git/info/exclude
and add *.txt for example, to exclude txt files.
OR
add a .gitignore file with similar contents
To add a GitHub remote repository, do;
git remote add origin url
where url is the git url, example: https://github.com/user/name.git
To verify this, do;
git remote -v
To push changes, do
git push remote name branchname
example; git push origin master
where origin is the remote name and master is the branch
To push to a different branch name, do;
git push origin master:newBranchName
where origin is the remote name and master is the branch, with newBranchName being the new branch name on the remote.
Example (specifically for submitting Harvard X programming sets);
so origin is my remote name, master is my local branch and assignments/2020/x/0 is the new branch name on the remote.
Also found this quite useful;
and
No comments:
Post a Comment
Note: only a member of this blog may post a comment.