git

Why i can't push my code on my GitHub repositorty after set up my remote?

本秂侑毒 提交于 2021-02-11 12:24:59
问题 I am not so into GIT and I have the following problem: I created a new repository on GitHub . Then, into the folder of my project, I have done the following commands: 1) I set up the init repository into my project folder: git init 2) I set up the reference to my GitHub repository: git remote add origin https://github.com/AndreaNobili/SpringBoot-Excel-API.git And retrieving the reference information I obtain this: developer@developer-virtual-machine:~/git/SOC-dashboard$ git remote -v origin

How to reference 'environment' in github action workflow?

浪子不回头ぞ 提交于 2021-02-11 12:20:50
问题 I have the environment created named "main", but the workflow below errors out: environment created: Below is my github workflow: name: Deploy ADf ARM on: workflow_dispatch: environment: name: main jobs: build-and-deploy: runs-on: ubuntu-latest steps: # Checkout code - uses: actions/checkout@main ... at present it notes the error: The workflow is not valid. .github/workflows/deploy-adf-arm.yml (Line: 7, Col: 1): Unexpected value 'environment' How can I reference this environment to work? 回答1:

How to do a Git pull request on remote branches via the command line

元气小坏坏 提交于 2021-02-11 12:11:15
问题 I have a feeling i'm using the wrong words, or misunderstanding the words i'm using, which is making searching for what I want to do difficult. Right now I have a Git repo with 3 branches hosted on Azure Devops (very similar to Github/Gitlab/Bitbucket etc). My current flow is to commit and push locally (using PHP Storm) and then login to Azure Devops and manually use their UI to do a pull request from my develop branch to my staging branch. Then I log into the server and git pull from the

How to do a Git pull request on remote branches via the command line

 ̄綄美尐妖づ 提交于 2021-02-11 12:11:04
问题 I have a feeling i'm using the wrong words, or misunderstanding the words i'm using, which is making searching for what I want to do difficult. Right now I have a Git repo with 3 branches hosted on Azure Devops (very similar to Github/Gitlab/Bitbucket etc). My current flow is to commit and push locally (using PHP Storm) and then login to Azure Devops and manually use their UI to do a pull request from my develop branch to my staging branch. Then I log into the server and git pull from the

Cherry picking changes to specific files from a range of commits

核能气质少年 提交于 2021-02-11 08:48:39
问题 I have a branch into which I accidentally merged other peoples changes a long time ago, and now hundreds of files show up on a pull request that are not mine. I would like to create a separate branch into which I would like to cherry-pick changes to my own files over those several dozen commits, so that my new pull request only contains my changes. I found out how to cherry pick commits, and how to cherry pick files from one specific commit, but how do I cherry pick several files from a range

Switching Git to use SSH

心已入冬 提交于 2021-02-11 08:13:53
问题 I have an SSH key set up and added to Git servers. Even then, while using Git from my command line, it still uses username and password for authentication. Is there are any command to change my authentication mechanism. 回答1: I believe you're looking for credential helpers. Check out the git documentation here: https://www.kernel.org/pub/software/scm/git/docs/v1.7.9/gitcredentials.html My guess is that git config --global credential.helper cache will do the trick. If you're on a mac and

git shows delete in status, but they're not

纵饮孤独 提交于 2021-02-11 07:57:01
问题 I've gotten myself into a pickle. I have .dat files on-disk, and through a twisted and obviously incorrect git procedural sequence, git thinks I've deleted the files. The state of the files is as I want (present), but git status still thinks they're deleted. I've tried doing "git checkout -- file", "git add file", "git checkout -- file" and nothing seems to touch the status. I don't want to use "git rm" because I really don't want the files removed from either the disk or the cache...the repo

git shows delete in status, but they're not

一世执手 提交于 2021-02-11 07:56:11
问题 I've gotten myself into a pickle. I have .dat files on-disk, and through a twisted and obviously incorrect git procedural sequence, git thinks I've deleted the files. The state of the files is as I want (present), but git status still thinks they're deleted. I've tried doing "git checkout -- file", "git add file", "git checkout -- file" and nothing seems to touch the status. I don't want to use "git rm" because I really don't want the files removed from either the disk or the cache...the repo

Managing a private and public remote with different histories

笑着哭i 提交于 2021-02-11 07:43:36
问题 I have a project I would like to release in public. It has a large history and many branches. I do not want to release that. There will be a dreaded, fat "initial commit" on the public repository. I'm looking for a workflow that would allow me to: develop my software in-house, keep some parts of the software private, not to be released, keep the whole history on the private repo, release at will on a public repo (not necessarily with squashed, single commits per release, I'd probably keep the

git clone fails with Operation timed out after 0 milliseconds with 0 out of 0 bytes received

夙愿已清 提交于 2021-02-11 07:41:21
问题 git clone fails with: GIT_CURL_VERBOSE=1 git clone https://github.com/swagger-api/swagger-ui.git Cloning into 'swagger-ui'... * Couldn't find host github.com in the .netrc file; using defaults * Hostname was NOT found in DNS cache * Trying 192.30.252.129... * Connected to github.com (192.30.252.129) port 443 (#0) * found 174 certificates in /etc/ssl/certs/ca-certificates.crt * Operation timed out after 0 milliseconds with 0 out of 0 bytes received * Closing connection 0 fatal: unable to