GIT /GitHub Generating SSH keys

https://help.github.com/articles/generating-ssh-keys/ SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to your GitHub account. We recommend that you regularly review your SSH keys list and revoke any that haven’t been used in a while. Tip: If you have GitHub for […]

VSS: Undo Someone Else’s Check Out

https://allwrong.wordpress.com/2008/07/07/vss-undo-someone-elses-check-out/ One of my colleges is off sick today. I need to edit some files that he was working with on Friday. Unfortunately, he checked out these files in Visual Source Safe (VSS), but did not check them back in. As a result, Visual Studio won’t let me make any changes to these files. From time-to-time, most VSS […]

Have Continuous Integration with Jenkins in 30 mins!

http://www.frictionlesscode.com/have-continuous-integration-with-jenkins-in-30-mins/ If you are building and deploying code within Visual Studio and find its hard to scale up a team of developers, few things can alleviate your pain better than a Continuous Integration (CI) System. Never heard of continuous integration or you don’t know if it’s right for you? Take a moment and read from the […]

Git: Comparing Workflows

https://www.atlassian.com/git/tutorials/comparing-workflows As you read through, remember that these workflows are designed to be guidelines rather than concrete rules. We want to show you what’s possible, so you can mix and match aspects from different workflows to suit your individual needs. Centralized Workflow Transitioning to a distributed version control system may seem like a daunting task, […]

Git branch add/delete local and push to remote

http://stackoverflow.com/questions/2003505/delete-a-git-branch-both-locally-and-remotely Add a new branch to git (local) #git checkout -b production Push this new branch (to remote git server) #git push –set-upstream origin production Delete a branch (local) #git branch -D production Delete a branch in remote git server(push the delete local to remote) #git push origin –delete production  Get git info #git log […]

Git flow with Jenkins and GitLab

http://www.javacodegeeks.com/2014/01/git-flow-with-jenkins-and-gitlab.html At work I recently transitioned from TFS to using Git as our source control management. After introducing the team to Git we also established a common workflow on how we wanted to have Git integrate with Jenkins and GitLab. Below is our current implementation. Git branching strategies Git branching strategies are guidelines on how to use […]

Git on Gitlab basicCommand line instructions

Git global setup git config –global user.name “cadena” git config –global user.email “phong@cadena-it.com” Create a new repository git clone git@subin.cadena-it.com:root/BUN01.git cd BUN01 touch README.md git add README.md git commit -m “add README” git push -u origin master Existing folder or Git repository cd existing_folder git init git remote add origin git@subin.cadena-it.com:root/BUN01.git git add . git […]