var repo = "https://github.com/username/mysuperrepo.git"
cmd := exec.Command("git", "clone", repo)
err := cmd.Run()
if err != nil {
// something went wrong
}
https://stackoverflow.com/questions/34867203/cloning-a-repo-with-os-execgit-clone
Solução:
name: Example install of Ruby 2.6.5
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: clupprich/ruby-build-action@master
id: ruby
with:
ruby-version: 2.6.5
- name: Print version
run: ${{ steps.ruby.outputs.ruby-path }} --version
https://github.com/marketplace/actions/setup-ruby-environment-with-ruby-build
http://thecodeinside.com/trocando-usuario-e-email-em-commits-do-git/
git filter-branch --env-filter "GIT_AUTHOR_NAME='<novo nome>'; GIT_AUTHOR_EMAIL='<novo email>';" HEAD
https://stackoverflow.com/questions/19082710/development-log-file-exceeds-githubs-file-size-limit-even-after-deleting-file
Crie o arquivo “.gitconfig” com esse conteúdo:
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches
https://david-kerwick.github.io/2016/05/25/using-bitbucket-pipelines-to-run-sonarqube-analysis.html
Full Stack Developer, DevOps, CSM e LKU. coutoarmando@gmail.com