Response
stringlengths
8
2k
Instruction
stringlengths
18
2k
Prompt
stringlengths
14
160
As I mentioned in "Why does Git use a cryptographic hash function?", it is "safe" in term of data integrity (Linus Torvalds, 2007): We check checksums that is considered cryptographically secure. Nobody has been able to break SHA-1, but the point is, SHA-1 as far as git is concerned, isn't even a security feature. It's purely a consistency check. The security parts are elsewhere. A lot of people assume since git uses SHA-1 and SHA-1 is used for cryptographically secure stuff, they think that it's a huge security feature. It has nothing at all to do with security, it's just the best hash you can get. Having a good hash is good for being able to trust your data This has nothing to do with: privacy (which doesn't depend on Git itself, but on the Git hosting server, like gitHub or BitBucket) user identity (to really be sure about a commit user, as Thilo comments, you can sign commits (see "A Git Horror Story: Repository Integrity With Signed Commits") The OP add: what I mean is the owner of gitlab or github may steal our code This is a question of trust: Does the git hosting server have access to your code if it is in a private repo? Technically yes. Will they access your private code? As mentioned in "Can third party hosts be trusted for closed-source/private source code management?", nothing prevents them to. Yet, many startups have their private code on, for instance, GitHub. If you have real confidentiality concern, then it is important you keep the ownership of the all codebase, including the server where it is stored (meaning having your own Git repo hosting server).
Is it dangerous to keep code in gitlab and github? I heard it is quite safe to commit our code to gitlab and github. The reason is every code is hashed and it is nearly impossible for everyone to alter the code without using git tool. Is this true?
Is it dangerous to keep code in gitlab and github
This doesn't seem possible as of May 2023: https://github.com/dependabot/dependabot-core/issues/4364
I have a directory /experiments in my repo which contains - surprise! - experiments. Those usually come with their own package.json which includes dependencies that were up to date at the time I made the experiment but might be outdated by now. I have no intent to keep them up to date as the experiments are just proofs of concepts - concepts I might want to use later in the project but I would then implement anew in the main project. Unfortunately Dependapot sends me a lot of PRs that are about those dependencies in /experiments. Many of them require manual efforts on my end. So I would like to tell Dependabot to not send any notifications or create PRs for everything that is in the /experiments directory (but keep creating PRs for dependencies in the main project). I didn't really find much docs about how to configure Dependabot on GitHub, but I came up with this: /.github/dependabot.yml: version: 2 updates: # Ignore experiments: - package-ecosystem: "npm" directory: "/experiments" schedule: interval: "daily" ignore: - dependency-name: "*" It doesn't seem to work though. Today I received another PR from Dependabot that bumped one of the dependencies in /experiments. It was automatically merged, so no effort on my end, but still a bit annoying. How can I do this right?
Can I exclude directories from GitHub Dependabot?
According to the documentation, this is possible with the option target-branch. For example, if you want to have the updates from the branch develop, you can write the following configuration for the python pip environment: version: 2 updates: - package-ecosystem: "pip" directory: "/" schedule: interval: "daily" # Raise pull requests for version updates # to pip against the `develop` branch target-branch: "develop" # Labels on pull requests for version updates only labels: - "pip dependencies"
Like the title says, on GitHub is it possible to manually select a branch against which Dependabot should open its Pull Requests? From what I can see, it opens PR against whichever branch is set to be the main one in the repo settings, but it is possible to select another one?
Is it possible to select a specific branch against which Dependabot should open PR's?
Gist API doesn't provide any such way to embed part of a gist. However you can do it yourself with javascript in your end. there is a good library you can use: https://github.com/kashif-umair/gist-embed/ You can embed parts of a gist with this.
Gist lets you embed a gist in a web page: <script src="https://gist.github.com/dyoo/4627246.js"></script> I was hoping I could have it display just a line range subset. (Use case: Write some code for a blog post in a single gist. Reference certain lines throughout the blog post discussing those lines.) Is this possible? I can't find it documented, but is there some way to do it? As an example of how I thought it might work, GitHub supports URIs with line numbers. For example, the #L4-L8 anchor in this: https://github.com/twitter/bootstrap/blob/master/docs/base-css.html#L4-L8 I realize GitHub shows all lines with just those lines highlighted. Whereas I'm asking how to show just certain lines from a Gist. I mention this just for-example, how I guessed it might work. p.s According to How do I embed a single file from a GitHub gist with the new gist interface?, it sounds like this recently moved in the opposite direction from what I'm asking: The ability to embed just one file from a gist recently disappeared. I want to display just certain lines from just one file. But I wanted to ask anyway. Also I think this is a distinct question from that, which is why I posted this instead of commenting the existing question.
How to embed only certain lines from a gist?
Update May 2021: as I already reported in "How to embed a video into GitHub README.md?", "Video uploads now is generally available" Original answer 20217: No, as I documented before, an <audio> element (or video) is not supported in GitHub Markdown. For video, a workaround is to use an animated GIF, but for audio, having a placeholder linking to the actual audio seems to be the only way.
Is there a way to add an audio bar in the Github readme.md? I want to be able to play a certain mp3 file directly through the readme.md, rather than be directed to some soundcloud or youtube link.
Add audio in Github readme.md
15 Any RSS reader should do. Go to your dashboard page on GitHub where it says "your news feed" - in the upper right corner is the orange rss icon with the text "News Feed", that you can subscribe to. Share Improve this answer Follow answered Feb 12, 2011 at 21:10 Heiko RuppHeiko Rupp 30.6k1313 gold badges8282 silver badges119119 bronze badges 3 3 RSS feed plus Monotony is a dream on OS X – James Doc Apr 1, 2014 at 12:11 2 Does this still work? It seems like there is no RSS option anymore – Skeleton Bow Mar 5, 2017 at 22:15 OPen your dashboard and scroll to the bottom of the page. There is a Subscribe to your news feed link there – Sukima Apr 9, 2018 at 18:15 Add a comment  | 
How can I get a desktop notification when new pushes appear at projects which I select?
Desktop notifications from GitHub
Reverting on GitHub You don't need to restore (undelete) branches on GitHub to revert merge commits resulting from pull requests. For example: Non-revertible pull request Sometimes the revert button doesn't appear. From GitHub Help on reverting a pull request: Note: You may need to use Git to manually revert the individual commits if: Reverting the pull request causes merge conflicts The original pull request was not originally merged on GitHub (for example, using a fast-forward merge on the command line) It took me a while to find an example, but if the head branch wasn't merged into the base branch using the big green button on GitHub then it can't be reverted on GitHub: git revert Locally on the command line, you can use the git revert command to revert changes. This will work on both your protected branch and a downstream branch. git revert creates a new commit ahead of the current HEAD so you don't need to force push, and if from a downstream branch, you can manually create a pull request for the reverted changes. Reverting a merge commit is slightly more complicated than reverting a single-parent commit, so I'd suggest taking a look at this question for more information, as it's something I've never done before. If people aren't comfortable using the command line, I think SourceTree has an item on the context menu to revert a commit but I don't know how it handles merge commits. There might be similar options in other GUI applications. Hope this helps!
We have protected our develop branch on GitHub so that nobody downstream can push their commit directly. The commits need to go through specific feature branch and get merged through a pull request. There came a scenario where a feature branch is merged into the develop branch (after proper review and changes) and we are required to revert it later (maybe due to changes in requirements). If I try to revert the merge commit downstream, it will not allow me to push, since the branch is protected. I remember GitHub providing revert button when we merge the branch. But somehow I am not able to see (or find) the button now. We needed to revert the commit on priority so we removed the protection from the develop branch for the time being and pushed the revert commit (ugliest hack). Are there any other better alternative for reverting a commit from protected branch? Maybe I am missing or misunderstood some GitHub features. One more scenario is, what if I have deleted the branch from GitHub after I have merged, how would I revert it then?
Revert a merge commit from a protected branch on GitHub.com
11 Apparently, repository_dispatch events may only be read on the default branch See: this example (or this one) using workflow_dispatch this example with repository_dispatch For the latter, from William Villeneuve : # TODO: replace :token, :user, and :repo curl -H "Authorization: token :token" \ -H 'Accept: application/vnd.github.everest-preview+json' \ "https://api.github.com/repos/:user/:repo/dispatches" \ -d '{"event_type": "awesomeness", "client_payload": {"foo": "bar"}}' name: example-client-payload-action on: repository_dispatch jobs: test: name: Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - run: 'echo "field: ${{ github.event.client_payload.foo }}"' - run: 'echo "payload: ${{ toJson(github.event.client_payload) }}"' - run: echo baz if: github.event.action == 'baz' As seen here: Just posting here since it doesn't seem to be documented - you can also specify a list of types to trigger on: on: repository_dispatch: types: - manual-trigger-mytest - manual-trigger-all From "Manually Trigger A GitHub Actions Workflow" Share Improve this answer Follow edited Jan 18, 2022 at 18:41 Josh Kodroff 27.6k2727 gold badges9696 silver badges148148 bronze badges answered Jun 27, 2021 at 5:21 VonCVonC 1.3m539539 gold badges4.6k4.6k silver badges5.4k5.4k bronze badges 2 1 For workflow_dispatch also: "This event will only trigger a workflow run if the workflow file is on the default branch." docs.github.com/en/actions/using-workflows/… – Michael Freidgeim Aug 23, 2023 at 5:52 @MichaelFreidgeim But actually if you have same workflow file in both branch, you can run the workflow against the non-default branch. – Tony Chan Jan 19 at 21:21 Add a comment  | 
Please explain the difference between these 2 event triggers with some real world example.
Whats is the difference between repository_dispatch and workflow_dispatch in Github Actions?
7 Github has changed their web pages over time to help users explore more ways of diffing their data. At the time of your question, you were correct that you could secretly append ?w=1 to ignore whitespace. Recently they added a control to the Pull-request page, where you can toggle whitespace without using commandline, see screenshot However, (as you ask), it is probably unlikely that Github will add many, many diff settings that helps you differently depending on the context of your problem. For instance git diff --word-diff may help you in your particular case because of the long lines. But it will give you problems with any +-{} characters, since they are not escaped. Then you could use git diff --color-words, where you only get the differences in color (and no special characters are inserted. As a third option you could also use git diff --word-diff-regex="." which will diff any single changed character (as opposed to the standard word breaks above. I sometimes need to view XML file diffs, and sometimes they are concatenated to a single line. And in that case I can sometimes be lucky and normalize the files before and after. Git also has options for that. See git-attributes for examples involving smudge/clean So, don't expect too many diff controls on a github page: The controls you may need vary too much to make sense in any usecase. Instead, use the command line Share Improve this answer Follow edited Oct 24, 2022 at 21:08 JayRizzo 3,42033 gold badges3535 silver badges5151 bronze badges answered Aug 21, 2018 at 8:52 Jesper Rønn-JensenJesper Rønn-Jensen 109k4545 gold badges118118 silver badges157157 bronze badges 0 Add a comment  | 
I'm exploring usage of github for text versioning. A major problem with github is the fact that changes are by line. So if you make a word or phrase change that is rather granular, the whole line appears to have been changed. In git itself, there's a solution for this because you can activate the --word-diff option on the git diff command. You end up with nice diffs that looks like this: Is there any support for this in github? Some kind of query param that one can add to a url, similar to the white space exclusions option with ?w=1?
Possible to enable the word-diff option in github to see more granular changes to a line?
6 There are a number of packages that will do this: @hrbrmstr recommends the dtupdate package @jeborsel suggests adding a github repository as drat-repository via the drat package from Dirk Eddelbuettel. This will let you use update.packages() on it Share Improve this answer Follow answered May 17, 2018 at 15:38 community wiki divibisan Add a comment  | 
I'm using more and more dev packages installed from github. I find myself wondering if there is an easy way to update these packages? Essentially looking for something like update.packages() equivalent for install_github() (or indeed any other repo than CRAN). Similar question for R-forge has some ideas: Automatically update packages installed from R-forge Maybe the best way to do this would be to install dev packages in their own separate directory: How to specify lib directory when installing development version R Packages from github repository keep a tab on packages as they are installed, and try re-installing list regularly. Any thoughts?
update packages installed from github
1 I replaced tabs with four spaces in Notepad++ (Ctrl+H), and it works. You can use any numbers of spaces. Those tabs are automatically displayed as a 8-character-tab in Github Gist. Share Improve this answer Follow answered Dec 30, 2018 at 2:47 kiyahkiyah 1,51822 gold badges2020 silver badges3030 bronze badges 1 Yeap, works, changed my .editorconfig setup to use spaces. – Vedran Mandić May 10, 2019 at 19:12 Add a comment  | 
When creating a Gist on Github there is a setting for indentation (tabs or spaces; size 2, 4, or 8). After setting indents to tabs size 4, it changes to tabs size 8 after I save it. Editing it afterwords doesn't do anything. Other settings don't produce the expected result either. Am I misunderstanding this feature somehow? Can't find any documentation regarding this.
Issue with gist indentation
1 Are you the owner of the GitHub project and do you have the administrator role setup with your account (or can you grant administrator access to your account)? In this case I would recommend you not to protect the branch for administrators. This way you can guarantee that other persons are not pushing directly to develop, but all "knowledged devs" with administrator access are able to. They should be aware of what they are doing, though. You can edit this behaviour under https://github.com/${name}/${repo}/settings/branches/. My settings do look like this (the last checkbox is important): Note: maybe you could also use the "Restrict who can push to this branch" option. Share Improve this answer Follow answered Jul 13, 2017 at 16:12 Stefan MedackStefan Medack 2,7512626 silver badges3333 bronze badges 3 That is not really a solution in my opinion, as people protect their branches for a reason. To bypass that is to negate those choices. – Thermometer May 3, 2018 at 7:56 I know what you mean @Thermometer and I would agree. If your branches are protected from everybody on the team you would most likely not use gitflow but another way to review and merge your changes. However, the OP seems to be the admin of the repo, since he can change the restrictions manually. So I assumed he wants to have protected branches for other contributors, but also wants to use gitflow for himself. In this case my proposal is (afaik) the only option. – Stefan Medack May 3, 2018 at 8:11 Yeah it is a fine workaround. We are however also searching for a solution that works with these Github branch restrictions and the git flow commandline tool or concept. – Thermometer May 3, 2018 at 8:51 Add a comment  | 
I've got a repository with my develop branch protected and I'm using the GitFlow branching model. There's two branches; develop (containing features currently being developed) and master (latest deployed production code). My develop branch prevents commits being directly made via GitHub's Protected branches. When you locally finish a hotfix using GitFlow, it automatically merges the hotfix branch into your local master and develop branches. However, pushing changes directly on the develop branch are not permitted as this is a protected branch How can you overcome this? At the minute everytime I am creating a hotfix I have to: Manually turn off the branch protection Push the develop branch Turn it back on This is not automated and therefore, not really acceptable.
Github Protected Branches with GitFlow
So finally it worked. I've removed changed files in local folder - then suddenly git status started to see, that those files are missing. So I've restored them and git status started to see, that files are modified.
I've created git repository, added code and pushed it to GitHub. Then locally, I've edited the file Eila.Analyser/Program.cs, that was added to GitHub in first commit, saved it and git status says there's no changes. Ok, I think, must have messed something up, git reset --hard HEAD, and as I understand that should revert everything, but my file is not reverted. So I think I'm doing something wrong. I edit file in root folder, git status- shows there are changes, works as suspected, so it works on files in root folder, but not in sub folders. Am I missing something obvious here? UPDATE: Evidence, that file I'm editing was really commited (git log --stat): if it helps, tree picture: UPDATE2: Ok, I thought I really messed something up, so I've deleted folder, where was my solution, cloned once again from gitHub, and my local code still differs from existing in gitHub and git status sees no changes, git log origin/master..HEAD gives nothing.
Why isn't Git tracking changes in a subdirectory?
This gist provides a list of the 256 most active users. At the bottom of the list there is a list of Contribution Streak users that will answer this question more directly. I have not seen a report of all time streak records.
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations. Closed 7 years ago. Improve this question Does anybody know how to find a list of the users with longest Github streaks ever?
Who is the user with the longest streak on GitHub? [closed]
Thank You everyone for your response. I now use this GitHub actions which makes the process much more simpler: Step 1: Extract the secret key gpg --list-secret-keys --keyid-format LONG gpg --export-secret-keys --armor {your_keyId} Step 2: Store the extracted GPG key and passphrase as secrets step 3: Include this step in your workflow - name: Import GPG Key uses: crazy-max/ghaction-import-gpg@v1 env: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
I am trying to do a maven deploy via GitHub actions and i am getting the below error:- gpg: directory '/home/runner/.gnupg' created gpg: keybox '/home/runner/.gnupg/pubring.kbx' created gpg: no default secret key: No secret key gpg: signing failed: No secret key [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.272 s [INFO] Finished at: 2020-04-06T12:18:44Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project pretty-simple-jar: Exit code: 2 -> [Help 1] I understand that I need to somehow import my gpg secret key in the virtual runner where the actions workflow is running, but i cannot figure out a way to import my secret key in the virtual runner via the GitHub actions workflow ? Below is my workflow:- jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Maven Central Repository uses: actions/setup-java@v1 with: java-version: 1.8 - name: Display settings.xml run: | echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_TOKEN }}</password></server></servers><profiles><profile><id>ossrh</id><activation><activeByDefault>true</activeByDefault></activation><properties><gpg.keyname>${{ secrets.GPG_KEY_ID }}</gpg.keyname><gpg.passphrase>'${{ secrets.GPG_PASSPHRASE }}'</gpg.passphrase></properties></profile></profiles></settings>" > /home/runner/.m2/settings.xml cat /home/runner/.m2/settings.xml - name: Build Maven Project run: mvn clean install - name: Publish to Apache Maven Central run: mvn deploy
How to use GPG key in github actions?
This error message is found in some similar StackOverflow questions: here, here. Googling brings up a mailing list message with this error. Nobody has given an explanation why it occurs, so I thought I'd add what I've found. Some overview of terminology, from the man git page: GIT COMMANDS We divide git into high level ("porcelain") commands and low level ("plumbing") commands. From the above posts, it would appear that, when git status is run, it calls git status --porcelain. man git-status helpfully informs us what the --porcelain flag is for: --porcelain Give the output in an easy-to-parse format for scripts. This is similar to the short output, but will remain stable across git versions and regardless of user configuration. See below for details. So the issue you have is related to the git status call, which is by default trying to format its output into something easy to parse. From the above posts, noticably the answers here and the mailing list contentets, I would suggest that, for whatever reason, your git repository has become corrupted. If you're using submodules, it's possible one of those has become corrupted - this is relevant because status run "git status --porcelain" inside each populated submodule to see if it contains changes (link) unless explicitly told not to do so. As to why you seem to have a corrupted git repository? I don't know. Several other people on StackOverflow have mentioned overwriting, moving, replacing, or generally fiddling with .git directories in their repositories. Luckily, you have a backup, though, right? ;)
This question already has answers here: Why do I get "fatal: git status --porcelain failed"? (13 answers) Closed 6 years ago. All of a sudden i am getting this git error: ""git status --porcelain failed"" when i do a git status.... whats up with that?
Why am i getting "git status --porcelain failed"? [duplicate]
I stumbled upon this when encountering the same error and I was already on the latest version of gpg (2.2.17). For me, it turned out to be multiple things. Before committing I had to run $ export GPG_TTY=$(tty). This then prompted the passphrase prompt to appear. If I used a passphrase with a special character it didn't work (the prompt said I had a bad passphrase when trying to use), so I had to only use alphanumeric characters. And if you're doing this to get verified commits on GitHub ensure the name and email address match what you have on GitHub.
If I set my Git to sign with my GPG key it fails. I've tried GIT_TRACE and it doesn't really give me any more info: $ GIT_TRACE=1 git commit 15:29:35.112157 git.c:344 trace: built-in: git 'commit' 15:29:35.115745 run-command.c:626 trace: run_command: 'code --wait' '/Users/b/VurbAgency/haarlem.github.io/.git/COMMIT_EDITMSG' 15:29:52.884006 run-command.c:626 trace: run_command: 'gpg' '--status-fd=2' '-bsau' 'SECRETKEYID' error: gpg failed to sign the data fatal: failed to write commit object When I try to run 'gpg' '--status-fd=2' '-bsau' 'SECRETKEYID' it just hangs after saying BEGIN_SIGNING H8 and doesn't do anything anymore. Any ideas on how to solve this or avenues as to research?
Git GPG signing fails without a clear message
I thought what you want is a repo like a new one, so deleting the .git/ directory and re-initing it will be more simple. git clone https://github.com/user/user-repo.git cd user-repo git reset --hard tags/v2.0 rm -rf .git/ git init git add . git commit -m 'first commit' git remote add stash ssh://git@myserver:7999/myproject/user-repo.git git push --force stash master
I am trying to fetch a repo from Github, revert a tag in past, push it to another remote with deleting all history. I can do everything with below except deleting all commit logs. What I am missing? git clone https://github.com/user/user-repo.git cd user-repo git reset --hard tags/v2.0 git remote add stash ssh://git@myserver:7999/myproject/user-repo.git git push --force stash master
Delete all Git Commit History
Here is the simplest solution I've found: 1) Log in to your gitHub account on github.com 2) In the main tab click on Settings 3) From the main navigation of Services find Email and click it 4) Fill in your email address in field Address 5) Check the checkbox Send from Author 6) Check the checkbox Active 7) Click on Update Settings Optional: You can click on Test Hook for testing, check your inbox you should receive email. -> Will become available when you finish Update Settings in step 7) Also there are images made according to the process: And now for the grand final I have the answer which is tested and approved at my side. How to send email to ALL development team members, when gitHub's Service Hooks->Email allows only at most 2 recipients }. The answer is combination of Service Hook->Email @ GitHub && Google groups First login to your google account Go to Google Groups and at the top click on Create Group Type in Group Name, Group email address (will copy/paste into GitHub Service Hook->Email Address), Group description After that hit Create button at the top, your new group should be created now After that in the menu to the left hit Invite members and type in the email addresses of your team mates After that hit Send invites (when your members accept invitation) they are now formally members of this group In the menu on the left click on All Members and check the 4th column called Delivery, every team member should have option All Email. After that I would like to credit Mr. Clement Escoffier and please do follow his guidelines @ Clement Escoffier::Send Github commits to a Google Group on how to finish it. {Thank you Clement :)} If the link becomes unavailable here is another link to my gDocs @ PDF version of Clements guide 2018 update: github will discontinue this service in Oct 2018
I am used to subversion, where the collaborate group would receive an email whenever someone commits. Is there a similar feature on GitHub, so the people working on the repository receives an email whenever a user pushes their changes?
Receiving emails on GIT push
Try this gem: https://github.com/defunkt/gist Worked for me ^_^
I don't know if this exists yet, but I'd love to be able to do: $ cat mygist.js | gh new gist And have it return the URL (and possibly copy it to the clipboard / open it in the browser).
How do I pipe something from the command line to a new Github gist?
You can just open the package.json file with any editor and add the following in the main object "repository": { "type": "git", "url": "https://github.com/sonyzach/usfm-validator.git" }, also I think you should add the .git version
I have an app where I didn't add its repository in package.json while doing npm init. Now I want to add repo in the package.json file, but couldn't find helpful solutions for me. Also, I found repository url's ending like this .git but my repo address is simply this https://github.com/sonyzach/usfm-validator How can I add my repo url in my package.json? Which format need to add in package.json?
How to add a git repo in package.json file
If you do a git pull with a remote branch name, it will fetch the remote branch and then merge it into your current local branch. So to undo that, you will first have to reset your local branch to the remote master, then create a new local vs12up branch from the corresponding remote branch. Reset your local master to match the remote repository's master (WARNING: be sure that you don't have any uncommitted changes you want to keep before issuing the following command): git reset --hard origin/master Fetch all remote branches into your local repository: git fetch origin Create a new local vsup12 branch from the remote vsup12 branch, and switch to this new local branch: git checkout -b vsup12 origin/vsup12 Note that when you subsequently just do a master0 while switched to the master1 branch, you'll fetch and merge the latest changes from the master2 branch on Github into your local master3
I have a repository on Github, aav1 On my laptop I have two branches, one called master and one called vs12up The master branch was when the software was Visual Studio 2008, vs12up is converted to Visual Studio 2012. On my laptop everything seems fine and I pushed the new branch to github, appears correct. On my desktop I tried to pull the remote branch: git pull origin vs12up It wrote the changes to my master branch on the desktop, git log shows the commits made on the vs12up branch, but git branch only shows master, which is the current branch. How can I revert the changes to the master branch and pull the vs12up branch on my desktop to match the repository on my laptop?
Git pull origin <branch> overwrites master?
I just found out that there's another button at github that says "Git Read-only". It gives a similar but slightly different URL that works: git://github.com/mikehaertl/phpwkhtmltopdf.git EDIT: As @damick pointed out below the button seems to be gone now. But you can still manually change the original URL to match the pattern shown here.
As an anonymous user (no public key stored at github) I try to clone a public repository through the git@... URL. But it fails: $ git clone [email protected]:mikehaertl/phpwkhtmltopdf.git Cloning into 'phpwkhtmltopdf'... Permission denied (publickey). fatal: The remote end hung up unexpectedly So does this mean, github does not allow anonymous access through the SSH protocol? If so, is this documented somewhere?
Permission denied when trying to anonymously clone a github repository
You need to specify the remote name because it is equal to origin by default git reset --hard upstream/master
I want to pull from from an upstream branch and I want to ignore all commits made by me in my local and my remote on git. I only want the changes from the upstream remote. I am having issues with: git pull upstream master And I do not want to manually merge them. I just want to ignore all my local changes and the above command to work. I tried: git reset --hard But that doesn't seem to work for me. I want the changes from the upstream.
Git - How to force pull from an upstream remote and ignore commits in your local and remote?
You could assign the issue to one of them and @-mention the GitHub usernames of the others, which will subscribe them to updates for that issue. If you have groups of people who will often be assigned together, you could also create teams within an organization to mention them all at once. UPDATE: GitHub just shipped multiple assignees, so, now you can!
How do I assign a GitHub issue to more than one person? I have work in project with my colleagues using GitHub repository. If I create an issue I can assign it to one user, but sometimes I need to assign it to multiple people.
Assign GitHub issue to multiple people
First, make sure this is authorship, not "author" and "committer". If we are talking about two authors (as seen in the picture below) ,then this recent, since GitHub only announced it a few days ago (January 2018): "Commit together with co-authors" To add co-authors to a commit, just add one or more "Co-authored-by" trailers to the end of the commit message: Commit message Co-authored-by: Joel Califa <[email protected]> Co-authored-by: Matt Clark <[email protected]> Include your trailers at the end of your commit message, and have at least one line of white space before them. See the official documentation. In your case, that means any commit with multiple "Co-authored by" would be displayed that way: How can I turn it off? Make sure you don't have any Co-authored-by field in your commit message trailer. If you don't, report that to GitHub support, as it is most likely a bug resulting from their recent feature described above.
GitHub shows that my commits have been pushed by 2 authors: me and me. How can I turn it off? That is, how can I avoid seeing "me" and "me" (twice my GitHub account) as "authors" of a commit?
Github shows that my commits have been pushed by 2 authors: me and me
I found you can customize your site CSS to hide the header by creating the file: /assets/css/style.scss --- --- @import "{{ site.theme }}"; header { display: none; } This is a closed issue on Github. That said, you may want to override the HTML layout, so your site doesn't unexpectedly break.
I am trying GitHub Pages for my developer blog post, unfortunately I am having a hard time deleting the header part after choosing a theme. Even though I already edited the Readme.md, the header is still there and I can't even remove or edit it. Do you have any idea on how to remove or edit it? There are only 2 files on my repositories: Readme.md and _config.yml
How do you remove header on Github Pages?
There's no automated submission process like maven/jcenter. Just use the Contact option and submit details of your library. I'd also recommend submitting to Android Weekly which features new libraries. Just submit your repo link at the bottom of the page here I've submitted libraries to both via these methods and they do get picked up.
i've made a small library for android : https://github.com/linkindrew/easyFTP Also uploaded on Bintray, waiting for publish and JCenter approval.How can i make it available to "Free" stuff section on Android Arsenal ? Here : https://android-arsenal.com/free
How to publish Android Library on Android Arsenal?
Your options object does not have the headers option, describing the user-agent. Try this: var options = { host: 'api.github.com', path: '/users/' + username + '/repos', method: 'GET', headers: {'user-agent': 'node.js'} };
I'm trying to run this code but getting this error: Request forbidden by administrative rules, make sure your request has a User-Agent header var https = require("https"); var username = 'jquery'; var options = { host: 'api.github.com', path: '/users/' + username + '/repos', method: 'GET' }; var request = https.request(options, function(response){ var body = ''; response.on("data", function(chunk){ body += chunk.toString('utf8'); }); response.on("end", function(){ console.log("Body: ", body); }); }); request.end();
Request forbidden while accessing github api on node.js program
There is a github help page on this which details how to make changes to a pull request by checking out pull requests locally. What I might try is first creating a remote for the pull request submitter (I'm using the examples from the above page): git remote add kneath git://github.com/kneath/jobs.git Fetch the changes: git fetch kneath Check out the branch in question (ex. master): git checkout kneath/master Vet them however you like, since the code that will be there will be the pull request code. Run tests, etc. Merge them in if you're good to go: git checkout master git merge kneath/master Further, here is a very good page on git project management workflows which details the various workflows one can take on collaboration integration.
I recently started managing a project on GitHub where people have been submitting pull requests. Rather than merge them to master, I would like the ability to: First vet them to make sure they actually work Possibly making some stylistic changes before merging to master How can I do this? Do you have to make a separate branch, such as "dev", and instruct people to code against that before you merge to master?
Merge in GitHub pull requests, possibly making changes to them first
27 The easiest thing to do is to go to the commits page for your repo (https://github.com/USERNAME/REPO/commits/master) and there will be a green check mark when it's done building. For example: You can also query the Github API. For example using curl: $ curl -u USERNAME https://api.github.com/repos/USERNAME/REPO/pages/builds/latest { "url": "https://api.github.com/repos/USERNAME/REPO/pages/builds/12345678", "status": "built", ... "created_at": "2018-07-26T17:23:42Z" https://developer.github.com/v3/repos/pages/#get-latest-pages-build Some example statuses you might see: queued building built error Share Improve this answer Follow edited Jul 26, 2018 at 18:06 answered Jul 26, 2018 at 17:55 bmaupinbmaupin 15.1k55 gold badges9191 silver badges9797 bronze badges 1 1 Thanks! That green check is what I needed to find. – Brook Jordan Dec 24, 2019 at 17:17 Add a comment  | 
I have a working Github Page. (Specifically: a Project Page with Jekyll that lives at [username].github.io/[project_name]/.) I can deploy. (By pushing changes to my gh-pages branch and waiting a few minutes for it to build.) How can I check the deploy/build status? It's annoying to wait an unknown number of minutes after I push my changes to Github. I searched for 20 minutes and was surprised to find nothing. Am I misunderstanding something or using the wrong terms? o.O
How do I check the deploy status of Github Pages? (Specifically: Project Pages w/ Jekyll)
It doesn't really matter. If you think you won't make any changes, you can safely clone the original repository directly, which has the benefit that you can directly update your local clone via git pull. Once you realize you want to make changes you can fork it on github and add the fork as an additional remote. On the other side if you think you will make changes to the remote you can fork it. Once you realize that you were wrong and you don't need to make changes, add the original repository as remote and remove the fork. I for myself prefer to always add both the fork and the original one as remote, thus I can update my local clone via (e.g.) git pull original master and after that I can update my fork with git push origin (origin is my private fork here. The names doesn't really matter either). If I don't need the fork or don't need it anymore, I get rid of it. If I need it (again), I (re-?)create it. As a sidenote: You don't need a fork on github to make changes, because your local clone is a full repository too and if it's sufficient to keep your changes there, it's ok.
I'm using several GitHub repositories. The procedure I've been using so far, is to fork the original repository, and then clone my branch. If I make some changes, I just push them into my remote branch. My concern is: In the projects I probably won't make any modifications/commits, should I fork the original project and clone my branch, like I have done before, or clone the original one? And what if those projects involve a bunch of files which have to be customized (thus, my local project is different from the original one)?
Should I fork and clone my repository, or just clone the original?
Create a new *.xml file in your res/values (call it api-keys.xml or something similar). Change your manifest to point to this string: <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="@string/GoogleMapsKey"/> When you first push your changes to the public, put in a dummy key. Then edit the file with your real API key. Then add the file to your .gitignore file so it doesn't get pushed again.
I'm currently working on an Android project, and learning how to use git. I'm blocked because of a problem with git : I have my Google Maps api key declared in my android-manifest file : <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="HEREISMYKEY"/> Now, I'd like to push my code in github, but I can't push my AndroidManifest, because it contains my api key (which is supposed to remain secret). I'd like to know if there is a way to modify it before every push, or maybe modify it each time I compile my application? Thank you for your help !
Edit an AndroidManifest when compiling to remove API-key
37 Don't think the UI currently supports that. It looks like you need to tick, all checkboxes manually. Or come up with a JavaScript to find and click them for you. Try that in your browser console. document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}}) Share Improve this answer Follow answered Nov 12, 2021 at 16:10 Anton BelevAnton Belev 12.6k2222 gold badges7171 silver badges115115 bronze badges 2 8 I added this as a bookmarklet: javascript:document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}}) – Doug Harris Mar 18, 2022 at 21:25 since i googled for gitlab and ended up here, gitlab's equivalent is Array.from(document.getElementsByClassName("custom-control-input")).forEach(ch => {if(ch.checked) {ch.click()}}) – rado Jan 3 at 3:09 Add a comment  | 
I know I can manually go to PR and uncheck Viewed. Is there a shortcut to uncheck on all files in the PR? Found some relevant issues on GitHub https://github.com/refined-github/refined-github/issues/2444 Why I want to do it? To be able to see the comments and expand the cards which are collapsed because I manually marked viewed. I tried Option+Click on Mac , didn't work for me.
How to unview/toggle all the Viewed files on GitHub Pull Request?
I'd clone the repo (which you'd need to do anyway if you want to create a PR for it) and git grep it: $ git grep string_to_look_for
I'm searching a fairly major GitHub repo for an error that's a) a big one b) easily fixed. I know where it is from the frontend, I just need to search the entire GitHub repo for a string. How do I do that?
How to: find string in GitHub repo?
Sure, just check it out from a commit where it existed. If the commit that deleted the file is the tip of whatever you have currently checked out, that’s HEAD^ (the commit before last): git checkout HEAD^ -- path/to/file Then you can commit and push it.
How to restore an accidentally deleted file and folder in git after push. Below is the scenario. Accidentally deleted a folder which has a single file and made a bunch of changes to other files. Now, pushed all these changes. So this push has the deleted folder along with other changed files. On top of this, there were a few more pushes. Now, can I restore the deleted file, along with history and then push back to repo.
Restore deleted file with history in git
36 +50 I found out this link: mirroring-a-repository-that-contains-git-large-file-storage-objects It seems to exactly answer your question. The important part you missed is the git lfs push/pull: git clone --bare https://hostname/exampleuser/old-repository.git cd old-repository.git git lfs fetch --all git push --mirror https://hostname/exampleuser/new-repository.git git lfs push --all https://github.com/exampleuser/new-repository.git Share Improve this answer Follow edited Jan 30, 2023 at 11:59 J. Titus 9,59511 gold badge3535 silver badges4646 bronze badges answered Jan 22, 2017 at 8:54 Chananel PChananel P 1,76411 gold badge1818 silver badges1919 bronze badges 2 Well, this makes me feel like an idiot in how simple it is, but definitely accomplishes what I wanted to do. Thanks! – Mike Lewis Jan 24, 2017 at 20:43 what does git push --mirror https://hostname/exampleuser/new-repository.git has to do with mirroring to github repository? – sveer Jun 2, 2023 at 7:50 Add a comment  | 
I've duplicated a repo into a newer repo but when doing a git clone on the new repo it's unable to download the files using the LFS pointers and I get an error when smudge is used... e.g... "Error downloading object. Object not found on server" Steps: git clone --bare https://github.com/myuser/old-repo.git cd old-repository.git git push --mirror https://github.com/myuser/new-repo.git git clone https://github.com/myuser/new-repo.git [error.....git-lfs.exe smudge --- somefile.....Error downloading object] The branches and commit histories look fine but LFS fails to download the required files. Is there another method when using git-lfs?
Duplicating a git repository and its GIT-LFS settings
GitHub uses Redcarpet which is really a Ruby binding built by github for Sundown. There's a binding for Sundown in Python called Misaka. If you want to have something closer to the renderer github uses but in python you might start there. For code highlighting you can use Pygments with Misaka.
Does anyone knows of a working Python GFM implementation? Currently I'm using a javascript renderer. It works, but an actual Python renderer would be the right tool for the job. (FS is a Django app) I tried combining this with this. But the results are not so good. relevant code --> https://github.com/freedomsponsors/www.freedomsponsors.org/blob/master/djangoproject/core/models.py (see IssueComment.toHTML) Syntax highlighting is a plus.
Github-Flavored-Markdown in Python
This can be resolved by upgrading VSCode itself: Help → Check for Updates / Install Available Updates. You may or may not need to re-install the extension and re-authenticate with git. Reference: https://github.com/github/feedback/discussions/15684
Today I tried to use the copilot, but suddenly this error start appearing: [INFO] [fetch] [2022-05-19T21:00:55.452Z] Please upgrade your Copilot extension to continue using this service. I tried to uninstall and install again and reload, but nothing happens, anyone have any idea how to solve this problem? There's an error description in the image below:
Please upgrade your Copilot extension to continue using this service
According to the GitHub documentation, the scope for public repositories is public_repo, and for private repositories is repo. A token with one of those scopes is the most limited access possible for Git push or pull access; however, that token can access all public (respectively, private) repositories and can also be used for certain API access as well. If that's of concern to you, you can use an SSH key for your personal account, or to restrict it even further, a read-write deploy key for the repo in question.
I have a public github repo (I created a few years ago). I have two factor authentication enabled. I want to create a github API token to be able to push some changes to my repo. What is the minimal set of scopes that I must select in the github "New personal access token" page to be able to push changes to this repo? I want to avoid to give any rights that are unnecessary to the token.
Minimal set of scopes to push to github using an access token
22 I fixed this problem by setting the slave node tool path, selecting git and setting its value to C:\Program Files (x86)\Git\bin\git.exe Location: Configure Node - Tool Locations Share Improve this answer Follow edited Jun 24, 2015 at 16:20 joe_young 4,11522 gold badges2828 silver badges3838 bronze badges answered Jun 24, 2015 at 15:25 starlyingstarlying 22122 silver badges33 bronze badges 1 this way's better as you don't need to change global jenkins configurations – jackal Dec 20, 2015 at 22:21 Add a comment  | 
I need some help here, It's been a week I'm with this problem, can't figure out what's going on. I'm not able to clone a git repo from a slave node (Jenkins). I added the ssh key, host and slave (I've already tried generating a single key and one for each virtual and host)). On Jenkins: url:[email protected]: < repo> Credentials: Here I tried with username/password, username with ssh file, username with ssh key directly, and -none-. It doesn't seems like there is an authentication problem since I can clone the repo manually from console (both, slave and host). I can also connect with ssh -T [email protected] so the ssh key is fine, but when I build, this appear on console: Building remotely on IE10Win7 in workspace C:\Users\IEUser\Desktop\< folder > Wiping out workspace first. Cloning the remote Git repository Cloning repository [email protected]:< repo>.git git init C:\Users\IEUser\Desktop\< folder> # timeout=10 ERROR: Error cloning remote repo 'origin' ERROR: Error cloning remote repo 'origin' Performing Post build task... Does anyone have an idea? Hope someone can give me a clue, Thanks!
Jenkins Error cloning remote repo 'origin', slave node
35 Hopefully they posted an article yesterday about it! Long story short, here is the answer to you problem: ssh-keygen -R github.com curl -L https://api.github.com/meta | jq -r '.ssh_keys | .[]' | sed -e 's/^/github.com /' >> ~/.ssh/known_hosts But don't trust me blindly and have a look to the blog post: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ Share Improve this answer Follow answered Mar 24, 2023 at 13:03 JérémyJérémy 1,86022 gold badges2727 silver badges4343 bronze badges 1 2 Might be useful to mirror the fingerprint of the new correct key here: SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s (but obviously double-check in the article!) – Joachim Sauer Mar 24, 2023 at 13:07 Add a comment  | 
This question already has answers here: Why are connections to GitHub over SSH throwing an error "Warning: Remote Host Identification Has Changed"? (8 answers) Closed 12 months ago. I recently got the following error today when I tried to fetch, pull or push my code from/to my usual GitHub repository: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s. Please contact your system administrator. Add correct host key in ~/.ssh/known_hosts to get rid of this message. Host key for github.com has changed and you have requested strict checking. Host key verification failed. I struggled to figure out how to solve it and where it was coming from.
2023-03-23 - GitHub issue: REMOTE HOST IDENTIFICATION HAS CHANGED [duplicate]
You can add a PULL_REQUEST_TEMPLATE.md file to the root of your repo and it will be used as the template for new pull requests. You can use Github-flavored markup in that file. So, in your template file, just add whatever markup you want. For a checklist: Doneness: - [ ] Testing - [ ] Documentation There's also an ISSUE_TEMPLATE.md file that does the same thing, but for new issues. Official post: https://github.com/blog/2111-issue-and-pull-request-templates
When a Github pull request is created, it would be very nice to have a (code review) checklist added automatically to the PR. This could then be filled out by the PR submitter, and the reviewers would be able to see that the submitter has done what he is supposed to do before sending for review. Is that possible somehow? The best solution would be that the checklist showed up automatically when the PR was created. The second best could be an automatic comment added right after the PR was made.
How to automatically add a checklist to new github PR's?
GitHub Actions is a feature provided by GitHub to create workflows which can run on triggering any GitHub event, for eg run the build of the project on creation of a pull request. GitHub actions can be configured by creation of a workflow in the form of a yaml file and placing it under .github/workflows directory in your repo. This documentation provides more info regarding creating workflows. For example, say I have a repository with some python/js code and I start working on a new system. When I do a git pull to clone my repository in a new system are there any actions in the backstage that are consumed? Do I consume any time from my plan? No, running a git pull to clone your repo doesn't use up any allocated action minutes. GitHub actions only run if you have configured them to run by creating the workflows for specific GitHub events as mentioned here. When any actions are configured for a repo, the same can be viewed under the Actions tab as shown below. Every GitHub action triggered shows up here. Also, the current 2000 action minutes per month allocation is for the triggered workflows for private repos, not public repos. You can check your usage of the free action minutes for private repos at https://github.com/settings/billing, as mentioned in my SO answer here .
Can you please give a clear explanation, maybe with an example, as to what does github mean when saying that a plan includes 2000 actions minutes/month? If I execute a git pull does this count as one action? How actions connect to minutes? The time I take to pull some commits from a repo counts towards the minutes I have? I am aware of SO answers (like this) that may tell someone how to calculate the time remaining but I don't really understand what an action is. For example, say I have a repository with some python/js code and I start working on a new system. When I do a git pull to clone my repository in this new system are there any actions in the backstage that are consumed? Do I consume any time from my plan? This is what I haven't clarified and needed maybe some simple examples to demonstrate. Thanks!
What are github actions minutes/month?
Jenkins exposes a global variable named CHANGE_ID: For a multibranch project corresponding to some kind of change request, this will be set to the change ID, such as a pull request number. This variable is only populated for pull request builds, so you have to disable branch builds and enable PR builds in your pipeline's configuration for branch sources: My pipeline step then looks like this: def PULL_REQUEST = env.CHANGE_ID stage('Analysis') { withCredentials([[$class: 'StringBinding', credentialsId: '***', variable: 'GITHUB_ACCESS_TOKEN']]) { withSonarQubeEnv('Sonar') { withMaven(maven: 'M3') { sh "mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar " + "-Dsonar.analysis.mode=preview " + "-Dsonar.github.pullRequest=${PULL_REQUEST} " + "-Dsonar.github.oauth=${GITHUB_ACCESS_TOKEN}" } } } }
I'm trying to analyse my source code with Sonar using Jenkins pipelines. To ask Sonar to notify Github with the results I need to specify the Pull Request ID. How can I get this Pull Request ID from Jenkins Pipelines? We are using GitHub Organization Folder Plugin to build pull requests, not GitHub pull request builder plugin. That's why $ghprbPullId is not working for me. Any ideas how to get the pull request id in a different way?
How to get pull request id from Jenkins Pipeline
Your account's personal SSH keys identify your GitHub user. If an organization has granted you access, it was done via your GitHub user; an SSH key attached to that user will give you access. If you want to have separate SSH keys for your organization work (e.g. if you work on another machine), simply add the second key to your personal account.
Maybe I'm blind but I can't find a way to access an organization that has granted me access via SSH key. I know it's a breeze connecting directly to your own account but how would I go about doing this through an organization?
GitHub organization access via ssh key
One solution would be to fork the original public repo into your own public repo on GitHub. Then duplicate your forked public repo into a private one. You then clone both on your local workstation, and: do public and private modifications on your private local repo push private modifications first to your local public repo then push them to your GitHub forked public repo make your pull request from your forked public repo on GitHub.
I forked a public repo and made the new repo private. I added a new remote branch on my private repo with some fixes committed. Now, I want to create a pull request from the branch in my private repo towards the public repo I forked from. I select the branch in my private repo and click "Pull request". I click on "Change commits". I can't change the organisation/repo owner. I only see my organisation, but not the one of the public repo. I could only create a pull request against master branch of my private repo, but that's not what I want. Is it not possible to fix something of a public repo in a private one and create a pull request afterwards?
GitHub pull request from private to public repo possible?
docker build -t myAccount/myImage https://github.com/myAccount/docker-myImage.git#development See docker build command reference for more options.
Is it possible to build an image from a non-master branch on a Github repository? For example, I have the repository //github.com/myAccount/docker-myImage with a branch development that I would like to use for my image. Unfortunately, the following command only seems to allow building from the master branch: docker build -t myAccount/myImage git://github.com/myAccount/docker-myImage Here is the relevant documentation from man docker build: Building an image using a URL This will clone the specified Github repository from the URL and use it as context. The Dockerfile at the root of the repository is used as Dockerfile. This only works if the Github repository is a dedicated repository. docker build github.com/scollier/Fedora-Dockerfiles/tree/master/apache Note: You can set an arbitrary Git repository via the git:// schema. Perhaps there is an alternative, like docker build -t myAccount/myImage git://github.com/myAccount/docker-myImage:development?
Docker: how to build an image from a non-master branch on Github repository
If you have a small team and want everyone to have access to the repo, you can just grant them collaborator permission in the repo's admin settings. Forking isn't required if your scenario doesn't require it. (Although forking can be useful, you're also partly right: if you have a small team and know all the other team members and don't mind giving them read/write access, there's no need to fork.)
Can someone provide me with the cheat sheet for GitHub collaboration for a team of two who want equal access/rights to the repo. I am confused as to the need to use forking which appears to make sense for a large open source project with dispersed devs but seeems like overkill when I and my partner sit 10 feet from each other. Thanks, Doug
GitHub Collaboration Using the Shared Repository Model
It seems that you committed to no branch, i.e. your commit isn't part of any branch. Create a branch where you're standing, then launch gitk to compare to master, then cherry-pick or rebase as necessary.
I have a simple project that has one submodule. $ git submodule 964737623a362f6303e87ec41f2c7090c8c2c093 lib/mongodb-php-odm (heads/master-1-g9647376) I have made changes to that submodule and committed them, but cannot push them to github. $ cd lib/mongodb-php-odm $ git branch * (no branch) master $ git remote -v origin [email protected]:colinmollenhour/mongodb-php-odm.git $ git ls-remote . 964737623a362f6303e87ec41f2c7090c8c2c093 HEAD 6f5f91eff9b1854faa30608f335aee92aa7532eb refs/heads/master 6f5f91eff9b1854faa30608f335aee92aa7532eb refs/remotes/origin/HEAD 6f5f91eff9b1854faa30608f335aee92aa7532eb refs/remotes/origin/master $ git push origin master Everything up-to-date I don't understand why it says "Everything up-to-date" because the 964737 commit has not been pushed to github. It is likely I did something wrong, but I have no idea what that would be.. How do I push the latest commit in this submodule to github?
Unable to push commits from a git submodule?
library(devtools) #' Update all github installed packages. #' #' This will trash any non-master branch installs, and spend time re-installing #' packages which are already up-to-date. update_github <- function() { pkgs = loadedNamespaces() print(pkgs) desc <- lapply(pkgs, packageDescription, lib.loc = NULL) for (d in desc) { message("working on ", d$Package) if (!is.null(d$GithubSHA1)) { message("Github found") install_github(repo = d$GithubRepo, username = d$GithubUsername) } } } # test it: # install github version of tidyr install_github("hadley/tidyr") library(tidyr) update_github() Don't run this if you have any github installations from anything more complicated than the master branch of user/repo. Also be careful if you have a lot of github installations, since this will blindly reinstall them all, even if up-to-date. This could take a long time, and also might break working packages if github master branches are not in tip top condition. Take a look at devtools R/session_info.r for details.
I know you can install packages from CRAN with this syntax: install.packages(c("Rcpp"), dependencies=TRUE) You can update all of them from CRAN with: update.packages() On the other side, you can install packages (compiling them) from GitHub with: install_github("hadley/tidyr") How can you upgrade all GitHub packages? I mean without reinstalling (and compiling) them one at a time. Something like update.packages() for github.
Update all packages from GitHub
Try to look at github pages using custom domains: http://help.github.com/pages/ Custom Domains Let’s say you own the domain name example.com. Furthermore, your GitHub username is “charlie” and you have published a User Page at http://charlie.github.com/. Now you’d like to load up http://example.com/ in your browser and have it show the content from http://charlie.github.com/
Is there a way to set up a demo page on a github project? I see people having demo pages on google code, is there any way to also do that on github? I only need it to do html css and js nothing server sided. I'm trying to set up a multi-page ajax plugin so jsfiddle won't really help.
setting up a demo page on github
If you changed both files in the same commit, then no, this isn't possible. Pushes and pulls operate at a commit level; they won't split them apart. If you haven't shared the changes yet, you could split the commit into two, making a branch for each, and then initiate pull requests for those. This is one of those things there are many ways to do, but for example, you could do something like this: # make sure the commit in question is the most recent # make branch to point to the previous commit, leaving the changes in your work tree git reset HEAD^ # commit the changes to the first file git add file1 git commit # make a branch for the first commit git branch first-branch HEAD^ # commit the changes to the second file git add file2 git commit # create and check out a branch for this commit git checkout -b second-branch # rebase the branch back, so that it doesn't include the first commit git rebase --onto HEAD^^ HEAD^ second-branch # point your master branch somewhere that makes sense - maybe before either branch git checkout master git reset --hard first-branch^ This would leave you with history like this: - x (master) - A (first-branch) \ - B (second-branch) where commit A modified file1, and commit B modified file2. Once the history looks the way you like it, you can push the two branches separately and do what you need to do with them: git push origin first-branch second-branch
This question already has answers here: Undo working copy modifications of one file in Git (15 answers) Closed 11 years ago. I've made multiple changes to two files in a Git repository (specifically, added two formulae to brew). I committed the changes individually: git commit file1 git commit file2 I then did one push to GitHub: git push [email protected]:myname/homebrew.git I'd now like to send two pull requests to the upstream repository, one for file1, one for file2. Is this possible?
Git pull request for just one file [duplicate]
There is currently no way that I know of to revive pull request comments or issue comments. It is a feature that needs to be implemented. If you need this feature desperately, you can email them at [email protected]. They are usually very kind and helpful, and you might have your feature in no time! In the meantime, just try commenting again.
Is there any way to restore a deleted comment in a Github pull request? I can't see anything in the UI that allows you to do so, which would seem bad.
Any way to undelete pull request comments?
19 Try using the --rejoin flag, so that after the split the subtree is correctly merged back to your main repository. This way each split needs not to go through all history. git subtree split --rejoin --prefix=<prefix> <commit...> From the original subtree documentation: After splitting, merge the newly created synthetic history back into your main project. That way, future splits can search only the part of history that has been added since the most recent --rejoin. Share Improve this answer Follow answered Apr 22, 2013 at 4:16 Maic López SáenzMaic López Sáenz 10.6k44 gold badges4545 silver badges5858 bronze badges 2 6 And use which <commit...> ? I tried with the tip of that subtree and though it did the split/rejoin (not even sure what that means), my next subtree push was just as lengthy :( – Jorge Orpinel Pérez Mar 9, 2015 at 19:59 2 Why would this work (can you explain what's happening when you use split/rejoin)? and how often do I need to run this (once? once-per-some-unspecified-event? before every push?) – Anthony Mastrean Feb 24, 2020 at 16:28 Add a comment  | 
I'm using Git subtree to "link" several subprojects into the main project (I'm coming from "svn:externals"). I've used it for some weeks, but the time to push changes to the subtree remote increases every commit. $ git subtree push -P platform/rtos rtos master git push using: rtos master 1/ 215 (0)2/ 215 (1)3/ 215 (2)4/ 215 (3)5/ 215 (4)6/ 215 (5)7/ 215 (6)8/ 215 (7)9/ 215 (8)10/ 215 (9)11/ 215 (9)12/ 215 (10)13/ 215 (11)14/ ... 20 more lines ... (204)209/ 215 (205)210/ 215 (206)211/ 215 (207)212/ 215 (208)213/ 215 (209)214/ 215 (210)215/ 215 (211)To https://github.com/rtos/rtos.git 64546f..9454ce 9a9d34c5656655656565676768887899898767667348590 -> master Is there any way to "clean up" the subtree and therefore reduce the time to push changes?
How can I reduce the ever-increasing time to push a subtree?
I just had this problem (again), and finally was able to find a decent solution. Here is the gist with the code below: https://gist.github.com/DinisCruz/6866dede5cdff60d97790a14490f7844 function hide(selector) { $(selector).setAttribute('style','display:none')} function remove(selector) { $(selector).remove()} function remove_class(selector) { $(selector).setAttribute('class','')} function move_left(count) { var eventObj = document.createEvent("Events"); eventObj.initEvent("keydown", true, true); eventObj.which = 37; // left key for (i=0; i < count ; i++) { document.dispatchEvent(eventObj); } } function resize_canvas(width) { document.getElementById("network").style="width:" + width; window.dispatchEvent(new Event("resize")) } remove('.pagehead') remove('.js-header-wrapper') remove('.menu') remove('.Subhead') remove('.info') remove('.btn-link') remove('.footer') remove_class('.container-lg') // Note: they updated this class name from .p4-4 to .pb-4 remove_class('.pb-4') resize_canvas('2150px') move_left(14) Related twitter thread (shows some examples): https://twitter.com/DinisCruz/status/1171411025570275329
EDIT: This is supposed to be a gift for my mother, If I have to I'll drag and drop it and stitch a bunch of screen-prints together... however the resource has to live on the website somewhere. I do believe that at least someone on this site knows how to do this. EDIT: So I dug around on this somemore and found that if you put /meta after network you get a JSON. Also /chunk was in the page source, but after loading /chunk neither /chunk or /meta are loading for me anymore. I just want the entire graph in one picture, is that too much to ask? Adding /network to the end of a repo URL in github gets me an image something like this You can click and drag it side to side, but for the life of me I have not been able to get more than a small segment to show at one time. Is the any tool to generate the entire network graph in one image file? I don't want a chunk of the graph, I want to view the entire graph. I saw http://gitup.co/ mentioned in another question, but it appears to be OS X only. A linux or a microsoft solution would work for me. Thanks
How to get the full github.com visualization of the /network of a repo
8 +50 As I mentioned in "Sign git commits with GPG", with Git 2.0: If you want to GPG sign all your commits, you have to add the -S option all the time. The commit.gpgsign config option allows to sign all commits automatically. This doesn't fully work though, and is followed by issue 127802, with the following workarounds: Created a helper script with that content: /usr/bin/gpg –batch –no-tty "$@" and set gpg.program to that script Or: Adding "no-tty" to "~/.gnupg/gpg.conf" solved the problem for me. You might still get the error message: Commit failed with error: gpg: problem with the agent - disabling agent use gpg: Sorry, no terminal at all requested - can't get input error: gpg failed to sign the data fatal: failed to write commit object Again: bug in progress, also followed by issue 110261: resolve it with this in addition to the previous solution (OS X): 1) brew install gnupg gnupg2 pinentry-mac 2) nano ~/.gnupg/gpg-agent.conf -> pinentry-program /usr/local/bin/pinentry-mac 3) git config -–global gpg.program gpg2 Share Improve this answer Follow edited Feb 15, 2019 at 11:54 answered Sep 11, 2016 at 1:23 VonCVonC 1.3m539539 gold badges4.6k4.6k silver badges5.4k5.4k bronze badges 1 Thank you!. On my Mac on OS 10.14.3, all I had to do was the last 3 steps mentioned. Pinentry works when doing a commit through Terminal and IntelliJ. – Just The Highlights Jan 28, 2019 at 1:19 Add a comment  | 
According to this link, I simply need to include the -S switch to sign my commit using my GPG key, but I don't see how I can use that in Android Studio. How do I sign my commits in Android Studio? EDIT: I appreciate that OSX solutions are coming along, but I'd really like to see an answer that works with Windows. I only use my Mac for documents and stuff.
Android Studio and Git - How do I GPG-sign my commits?
9 No, to the best of my knowledge, that's not possible with GitHub. You could create a feature request for them and they might implement it. Share Improve this answer Follow answered Sep 20, 2021 at 17:40 knittlknittl 255k5555 gold badges323323 silver badges371371 bronze badges 1 2 There is a feature request github.com/github/feedback/discussions/10809 Please upvote so that it gets more traction . – SatheeshJM May 19, 2022 at 8:41 Add a comment  | 
I am trying to find a tool that would help disable squash and merge for certain branches, but not all of them. Github settings is allowing me to disable squash and merge, but it applies for all the branches, and the protected branches area does not have an option to limit merge options. Thank you!
Is there a way to disable squash and merge for certain branches in GitHub
8 There is the subtree merge. But here is an easier but partial solution that perhaps is good enough for your needs. Just fork and periodically merge back. Fork (clone) the repository Remove parts you do not need and move the sub-folder to where you do need Commit In the future, when you want to sync back up with the upstream Git code, just merge it with your fork. The files which you kept will sync back up with those from upstream, and you might have some small cleanups to do which are easy to see from git status. Share Improve this answer Follow edited Feb 21, 2013 at 23:24 dmon 30.1k88 gold badges8888 silver badges9696 bronze badges answered Oct 24, 2009 at 13:52 JasonSmithJasonSmith 73.2k2222 gold badges123123 silver badges149149 bronze badges 2 2 Sounds complicated, why would someone use git over svn or cvs? – Dennis Oct 24, 2009 at 17:15 1 In the context of GitHub, I would say that Git makes it easier to cooperate with others, both as dedicated teams or from the occasional contributor. – JasonSmith Oct 24, 2009 at 17:21 Add a comment  | 
This question already has answers here: Closed 11 years ago. Possible Duplicate: Is there any way to clone a git repository’s sub-directory only? I'm trying to clone parts of a github project but I can only get the root folder. This is the first time im trying to use github and I just installed tortoisegit, im used to svn and cvs where you could just take a folder you wanted to checkout, but it seems git only got a .git file in the root folder so im not sure what to do.
clone parts of a github project [duplicate]
That looks just like a regular user account, except maintained by Github staff. If you think they would be interested in hosting your project on that page, you can email them, as the page states: [email protected] However, unless you're Linus Torvalds or Larry Wall, they're probably not going to jump at the chance. You have to set up your own account, and then just create a public repository---which is free--and voilà, there's your mirror. Locally, if you already have a different remote repository for that project, you just set your Github account as a second remote to which you can either push whenever you push to your primary remote, or on special occasions. If you want to create a repo that displays the "mirrored from" line that you see on their mirrors page, according to this answer, you have to contact Github support: Creating an official github mirror
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 years ago. Improve this question I apologise if this question is a bit off-topic, but I would like to know how one goes about setting up a 'mirror' repository on GitHub, as is seen at https://github.com/mirrors. Also, I am running Windows.
How to set up a mirror repo on GitHub [closed]
8 This is a bug, and it's been brought up to their attention long time ago. Still no fix. https://github.com/actions/runner/issues/2131 Share Improve this answer Follow answered Jan 9, 2023 at 12:59 Marko T.Marko T. 8111 silver badge22 bronze badges 1 Looks like the various teams are playing pass-the-parcel with that issue and giving no external visibility on where the problem lies. Also see github.com/actions/runner/issues/886 – Donal Fellows Jan 19, 2023 at 15:44 Add a comment  | 
Suppose a CI workflow is running, how can I view the full logs? What I've tried I can see the logs if I click on the task immediately after starting a new workflow, for example: But once a workflow has been running I cannot see the full logs I've tried clicking on the cog on top right of screen -> View raw logs, but it shows: 2022-07-14T16:29:41.4911629Z Requested labels: ubuntu-latest 2022-07-14T16:29:41.4911713Z Job defined at: username/repo/.github/workflows/main.yml@refs/heads/main 2022-07-14T16:29:41.4911751Z Waiting for a runner to pick up this job... 2022-07-14T16:29:42.2335026Z Job is waiting for a hosted runner to come online. 2022-07-14T16:29:48.5809023Z Job is about to start running on the hosted runner: Hosted Agent (hosted) But I know there's much more than that. If I cancel the workflow, it suddenly shows the full logs (I just need to be able to see them without cancelling or restarting a workflow):
How to see full logs on GitHub Actions (without restarting or cancelling workflow)?
I'd like to both a) avoid introducing merge commits You won't have any merge commit created, since the doc mentions: all commits from the topic branch (or head branch) are added onto the base branch individually without a merge commit. Pull requests with rebased commits are merged using the fast-forward option. And: b) preserve the commit SHAs and tags from the feature branch. Any rebase (locally or remotely on GitHub) would change the SHA1 anyway (since a rebase, by definition, changes the base parent commit). As Mondkin helpfully comments, a rebase made on top of an ancestor commit leaves the commits alone. If GitHub still does change the SHA1, that means some other metadata (date, or comment) is changed for GitHub to reflect/record that operation, and make sure it is visible (as opposed to a local repo, where a rebase on top of a local ancestor is a no-op: nothing happens).
I like using the "rebase and merge" option for merging PRs in Github to avoid cluttering the commit history with merge commits. But I've noticed the following behavior: (from Github's docs) The rebase and merge behavior on GitHub deviates slightly from git rebase. Rebase and merge on GitHub will always update the committer information and create new commit SHAs, whereas git rebase outside of GitHub does not change the committer information when the rebase happens on top of an ancestor commit. This seems strange to me since it's not how rebase works from the git CLI. Does anyone know why it behaves this way? Ideally, I'd like to both a) avoid introducing merge commits and b) preserve the commit SHAs and tags from the feature branch. Is there a way to do this from the UI?
Why does the "rebase and merge" option in Github create new commit SHAs? Is there an alternative?
Go to settings page, branches, ... and select the default branch.
My company uses github. When I want to do a pull request I need to make my PR from my fork to the main repo into the staging branch. By default my PRs point to the master branch, so for every pull request I have to change which branch I'm merging into. I know that you can set the default branch in github. I want the default branch to remain master, but I want my pull requests to point to staging by default. Is that possible? In the image below I don't want to have to change base: master to base: staging every time. The bigger pain is when I forget to change it to staging.
default branch for pull request
I was patient and they fixed the problem: npm update karma@latest should work.
I recently pushed an Angular CLI 5 application to GitHub and it indicated the following: We found a potential security vulnerability in one of your dependencies. A dependency defined in net-incident/package-lock.json has known security vulnerabilities and should be updated. Dependencies defined in net-incident/package-lock.json 816 hapijs / hoek Known security vulnerability in 2.16.3 I have gone through the output from ‘npm audit’ and executed the various updates, including the following (which was not suggested): npm install --save-dev [email protected] The ‘request’ package contains ‘hawk’ which contains ‘hoek’. When I look at the ‘request’ package in node_modules the version has changed. But the following two updates from ‘npm audit’ do not seem to do anything: npm update fsevents --depth 4 npm update stringstream --depth 5 And I am left with the following: [!] 33 vulnerabilities found [12201 packages audited] Severity: 5 Low | 24 Moderate | 4 High Run `npm audit` for more detail And many of the vulnerabilities are like the following: Moderate Prototype pollution Package hoek Patched in > 4.2.0 < 5.0.0 || >= 5.0.3 Dependency of karma Path karma > log4js > loggly > request > hawk > boom > hoek More info https://nodesecurity.io/advisories/566 In the end, the application would not compile, so I replaced the the package and lock files, and now I am back to the beginning. I really want to fix the security issues. How do I get rid of the pesky ‘hoek’ vulnerabilities?
How to get rid of the ‘hoek’ vulnerabilities
Just to make sure I understand the state of things: you created the release branch but did not check it out, so your commits are on the development branch in your local repository. You said you merged the changes into the release-v0.2.0b branch. If that is the case, and there are no other commits on the development branch you need to preserve, just delete the local copy of the development branch and check it out again from origin. First, verify what branches you have and which one you are on: git branch -av Then switch away from the development branch so you can delete it: git checkout origin/development git branch -D development That actually leaves you on no branch, but you'll get back on a branch when you check it out again from the origin: git checkout origin/development -b development I suggest checking out origin/development to avoid unnecessary churning of files in your snapshot.
I did a bit of development against the wrong branch in my local repository. I did a git branch without next doing a git checkout. The commands look something like this: #On branch development git branch release-v0.2.0b # changes and several commits git push origin release-v0.2.0b And that's when I realized I was working on the wrong branch. My github repo is in the proper state, but my local repo isn't. I've merged the changes from development into release-v0.2.0b, but I'd like to reset development back to the way it is in my github repo. What's the best way to go about this?
How do revert a local branch back to how it is in github?
You can make a .bat file in which you add all the repositories yourself with this cd C:\path\to\git\repo call git pull cd C:\path\to\git\repo2 call git pull Or let it run through a whole directory with git repositories FOR /D %G in (C:\Documents\GitRepos\*) Do cd %G & call git pull & cd .. Instead of .bat file there is a GUI client Github for windows If you have all your repositories in there it won't be a pain to remember to sync them all.
So I have a lot of repos, and sometimes I forget if some are behind on their pulls, so I was wondering if there was a way to git pull for each repo in one .bat script. I saw someone do it for Linux I believe here, but I'm on a Windows machine. Does anyone know how to do this for Windows?
How to git pull for multiple repos on windows?
61 I also had this issue. Because I was trying to pull an organizations repo which was also private I needed to be granted access by the organization to use GitKraken (since it is seen as a third-party). If you go to your Github settings and under Applications -> Authorized OAuth App -> GitKraken thats where you can apply for permissions to the specific organizations you are assigned to on Github. Hope this helps! Share Improve this answer Follow edited Mar 13, 2020 at 5:18 Kind Contributor 17.9k66 gold badges5353 silver badges7070 bronze badges answered Dec 19, 2018 at 9:08 Faris TangastaniFaris Tangastani 89777 silver badges77 bronze badges 4 5 This is what I was running into, needed to grant access to the org too. Thanks Faris – Dan Cramer Oct 2, 2019 at 18:20 3 This was the fix for me. Thanks! – BogeyMan Aug 5, 2020 at 16:27 Thanks @Faris, exactly what i needed – Kubadev Dec 8, 2020 at 11:22 Might not be clear from the above screenshot: make sure to click on the "GitKraken" link in order to be able to "Request" from your org. – Danijel Mar 11, 2021 at 14:47 Add a comment  | 
I am trying to configure GitKraken with a particular repo I have on Github. As far as I can tell, once I give it my local project folder with the repo, it can see the remote. However, trying to push or pull gives me an error Push/Fetch failed. could not connect to origin. It seems like it is an issue with authentication and SSH. I've tried to generate public/private keys in GitKrakens preferences auth page and add them to Github under the Github pane, but I get the same errors. At this point I simply can't get things to work. I'm unfamiliar with the specifics of SSH. What is the issue here and how can I configure GitKraken to push/fetch with my upstream?
Configuring GitKraken to push/fetch w/ Github
merge changes from local_branch TO master git checkout master git merge local_branch merge changes from master TO local_branch git checkout local_branch git merge master Pull is when you have an 'origin' repo :)
I have a remote origin/master and a remote branch remote_branch. I also have local master and a local branch local_branch. When I try to pull the local master into the local_branch with git pull master local_branch I get this. fatal: 'master' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. However, when I do git branch I see this: * loca_branch master Why can't I pull from my local remote_branch0?
How to pull local master into local branch
It's a typo. You typed -c but wanted (and used in your question) -C To use -c, the keys have to be already present. Excerpt of man ssh-keygen: Requests changing the comment in the private and public key files. This operation is only supported for RSA1 keys. The program will prompt for the file containing the private keys, for the passphrase if the key has one, and for the new comment.
When I enter ssh-keygen -t rsa -C "[email protected]" in git it gives a "Too many arguments" error. How do you solve this issue? Screenshot
When I enter ssh-keygen -t rsa -C "[email protected]" in git it gives "Too many arguments" error
It should be ${{ github.event.release.tag_name }}. The structure of a release can be found here: https://developer.github.com/v3/repos/releases/#get-a-single-release I'd also suggest to use on: release: types: [published] instead of created to avoid putting something to npm for draft releases. See: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#release-event-release Hint: To debug the event you can use: jobs: debug: name: Debug runs-on: ubuntu-latest steps: - name: Dump env run: env | sort - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT"
I have created a Github repo that has got an action to build the npm package and publish it to npmjs.com. The trigger for my action is the creation of a new release in Github. When creating the new release, Github is asking me for a version number. I would love to use this version number in the Action and provide it to the yarn publish command. My ci-file looks like this (i stripped some parts that are not important here): name: Deploy npm package on: release: types: [created] jobs: publish-npm: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: 12 registry-url: https://registry.npmjs.org/ - run: yarn install - run: yarn build - run: yarn publish --new-version ${...} env:a NODE_AUTH_TOKEN: ${{secrets.npm_token}} Is there an environmental variable that contains the version number from the release?
How to use Github Release Version Number in Github Action
If you did a clone, then all branches should be available to you. You need to checkout the branch. git checkout todo-mvvm-databinding If the branch isn't available for whatever reason, then you can create it and then pull it: git checkout -b todo-mvvm-databinding (-b specifies "create branch") git pull origin todo-mvvm-databinding will fetch and merge this branch into your local one.
There is this repo : https://github.com/googlesamples/android-architecture And there is this branch : https://github.com/googlesamples/android-architecture/tree/todo-mvvm-databinding/ I have clone the project but i have only the master. What can i do to get this branch ?
How to pull a specific branch from Github
Since I had just created the repository and there were no users, the solution was to delete the repository from Github (under 'Settings' menu) and create it again (once deleted I could use the same name). The trick is to not initialize the repository from GitHub - allow VS.NET to do this on 1st sync. Now it works wonderfully from VS.NET. If I would not have deleted the repository, I would of had to use some external tools to either rename the local repository, or use sync from another tool (like TortoiseGit) that allows forcing to overwrite the branch on sync. It did not appear there was anything native to VS.NET that would allow this to occur.
I'm using VS.NET 2013 with the integrated Git tools, and attempting to publish my master branch to an existing repository I set up on GitHub. I'm using the VS.NET tools in the IDE exclusively and would like please any responses to follow using these tools if possible as opposed to a command line. All of my changes have been committed locally and I just need to publish the branch to GitHub. However, when I try and publish my local master branch I receive the following error: You cannot publish local branch master to the remote repository origin because a branch with the same name already exists there. You might want to rename your local branch and try again. I know there is a lengthy article to this here, but I'm trying to remedy this from VS.NET or online at GutHub directly if possible. At best I want to better understand the issue. I'm almost positive this issue was caused by me selecting the option Initialize this repository with a README selection on GitHub instead of creating a blank repositoy that my local changes could be pushed to. I think GutHub has used the same branch name already and it is causing a conflict. I suppose I could delete the repository on GitHub and start from scratch, but was hoping to get this ironed out either from VS.NET or GitHub. Does anyone know how I can make it so my master branch can be successfully published?
Error publishing master branch to GitHub from VS.NET
You can't download a subdirectory from GitHub as a zip file. Some options are to download the full zip and manually extract the subdirectory that you want, or use git with sparse checkouts instead of downloading as a zip file. This approach does download the entire repository into the .git directory, but your working copy will only contain the files and directories that you want. For more information on sparse checkouts have a look at this answer.
I want to download this source file in the zip here: https://github.com/xdtianyu/android-4.2_r1/tree/master/packages/apps/SoundRecorder But there is no Zip Download button. There is a Zip Download button in the root directory of the repository: https://github.com/xdtianyu/android-4.2_r1 But I don't want to download the whole repository. How can I download that single project (specific subdirectory)? I read this topic but still, I can't Download source as the zip file: Download single files from GitHub How to download source in ZIP format from GitHub?
There is no "zip download" button to download source in .zip on github
I also had the same problem: fatal: git apply: bad git-diff - expected /dev/null on line 47 Yet line 47 reads --- /dev/null. The problem I found was that the line endings were in Windows format instead of UNIX format. Converting the line endings to UNIX format in Notepad++ fixed the problem for me.
So I was trying to use apply a diff file to my git dev branch. The diff I wanted to apply was this one here: https://github.com/mbabker/joomla-cms/compare/JHtml_move.patch I used git apply PATH_TO_PATCH.patch Now on trying to apply it I get a load of errors cumulating with a fatal: git apply: bad git-diff - expected /dev/null on line 47 Thing is line 47 reads --- /dev/null I saw on another forum somebody say there was a trailing white space after the /dev/null part but there isn't. In case its any help I'm also being thrown errors of trailing white spaces on lines 9, 10, 11, 12 and 13 - despite their NOT being any trailing white spaces. In any case the diff is being generated by git - I'm just copying and pasting it into notepad. I've also tried using curl https://github.com/mbabker/joomla-cms/compare/JHtml_move.patch | git am but that just gives an error without specifying location. Any ideas as to why its giving an fatal error when the line actually exists???? Update to @IvanZuzak I tried adding in the git am --ignore-space-change --ignore-whitespace PATH_TO_PATCH.patch however I got first of all (as this was the downloaded patch) an error saying the email was invalid (it had been converted to html code) so I tried to fix that but it kept throwing it up every now and again. Then it said previous rebase directory PATH_TO_GITHUB_BRANCH/.git/rebase-apply still exists but mbox given.. So I found this which suggested removing the rebase-apply folder in the branches .git folder. So I did that and then I got the invalid email error again (despite I'd changed both ones away from the html formatted)
Applying a diff file with git
When you're in an organization that uses SAML SSO, every personal access token that's used to access that organization's resources has to be specifically enabled for that organization. You can go into the Personal Access Token settings and choose "Configure SSO". From there, you can enable the token for the specific organization that you're using. After that point, using it as normal should work.
FROM golang:1.17-alpine as builder ENV GOPRIVATE=github.com/XXXXX/ ARG GITHUB_TOKEN=$GITHUB_TOKEN RUN apk update && apk add git gcc g++ libc-dev librdkafka-dev pkgconf && mkdir /app && git config --global url."https://someusername:[email protected]".insteadOf "https://github.com" WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY ./ /app RUN go build -tags dynamic FROM alpine:3.1 RUN addgroup -S app && \ apk add --no-cache librdkafka-dev RUN mkdir /logs && mkdir /app WORKDIR /app USER app EXPOSE 8000 8001 8002 CMD ["./main"] fatal: could not read Username for 'https://github.com': terminal prompts disabled Confirm the import path was entered correctly. If this is a private repository, see https://golang.org/doc/faq#git_https for additional information. Any idea how can I fix it inside docker
"organization has enabled or enforced SAML SSO. To access remote: this repository" Error on Docker Build
I've tried for days trying to find the proper answer to this, and finally I figured out how to do this via the curl command. It's a 3-step process. First, to get a list of the assets for the latest release: curl -H "Authorization: token YOURGITHUBTOKEN" \ https://api.github.com/repos/NAME/REPO/releases/latest Then in the JSON, look up the url of the asset you want. For example it would look like: "url": "https://api.github.com/repos/NAME/REPO/releases/assets/1275759" Then you pass this to another curl command to retrieve the actual URL, which is actually a link to an Amazon S3 file. curl -H "Authorization: token YOURGITHUBTOKEN" \ -H "Accept:application/octet-stream" \ -i https://api.github.com/repos/NAME/REPO/releases/assets/1275759 The URL will be in the "location" field of the HTTP response, and then use curl to get the file like this: curl "https://github-cloud.s3.amazonaws.com...." -i -o FILENAME
I have a repo with binary files in it that I need. I can git checkout tags/thetagoftherelease which seems to checkout the correct tag, but does not pull down the binary files. How can I pull down the binary files that were added to the release (the green boxes on the release)? Added picture of binary files in a release.
How do I download binary files of a GitHub release?
If those files are already committed, you need to remove them from the index before seeing your .gitignore file work. git rm --cached *.xcuserstate # or git rm -r --cached project.xcworkspace
I can't exclude user interface state file from commit. Every time I'm trying to push to github it asks me to commit first and insert user interface state file into the changes (even if I didn't move the mouse or interface at all it still is shown to commit!). I tried different methods, described in other similar topics. For example, I tried to add all possible cases of user interface into the .gitignore in root, like this: *.xcuserstate project.xcworkspace xcuserdata UserInterfaceState.xcuserstate project.xcworkspace/ xcuserdata/ UserInterface.xcuserstate It didn't work. I tried to clean the cache and reset git, didn't help. Git status command says the following: "modified: .xcodeproj/project.xcworkspace/xcuserdata/.xcuserdatad/UserInterfaceState.xcuserstate" And it looks like this Please help (it is driving me crazy)!
Can't exclude user interface state from commit in xcode
File | Settings (Preferences on Mac) | Version Control dialog allows to map different directories to a version control, so just make several mappings instead of one, map each module root to Git.
How can I setup git in Intellij to have different git repositories for each module in 1 project. I have an API I am maintaining and my fork of an Open Source project as 2 different modules in 1 intellij project. I would like each module to push/pull with a different git repository.
Setting up different git roots for different modules in same project - Intellij IDEA
Just do git push -f ( force push ) Pushing to heroku might be one of the valid use cases for git push -f, but still be careful and understand what you are doing.
We are pushing builds to heroku and would like to push without pulling in latest changes. I am essentially using the github repo as my source control repository and pushing to the git heroku repo from several different machines. Since we have a few build servers pushing to the same heroku repository sometimes a push of latest bits from a build server will throw a message saying I need to pull latest before committing and pushing. However since the code from the build server is guaranteed to be the latest, I'd like to throw away the changes from the pull and just commit and push the files without a merge. Is there a way to do this? Any other suggestions on how best to set this up?
how to overwrite with a git push, overwrite changes to the git server?
No, the GitHub file browser is not configurable that way. Getting back that extra information would mean transferring an enormous extra amount of data (for each pages of each repos) for GitHub, so I am not sure this is a feature you would see anytime soon. Note that 'size' is an acceptable criteria for GitHub search though (meaning that size information is there and can be used, not just for browsing files). element language:xml size:100 Matches code with the word "element" that's marked as being XML and has exactly 100 bytes.
The GitHub file browser lists a file's name and info about the last commit: Is there a way to add each file's size to these listings?
List file sizes in GitHub
As mentioned in "How to reach some commands on Github for windows", you best course of action would be to use to git CLI (command line interface), opening a shell from "GitHub for Windows", or using msysgit. Then a git reset HEAD^2 (or even git reset --hard HEAD^2 if you really want to remove those files as well as any work in progress) would drop those commits (as in "How do I delete unpushed git commits?" or "How to delete a 'git commit'"). After a refresh, GitHub for Windows should display no more unsynced commit. Other answers below mention the recent addition of "Undo most recent commit", which achieve the same reset: As I mentioned in "GitHub undo a discard", the "discard changes" feature would achieve the same as a git reset.
I have two unsynced commits using GitHub (Windows), but don't want to commit them now. How can I revert or drop them?
How to remove unsynced commits in github for windows?
Cloning the repository will give you the entire commit history of all the source code. You need only scroll back through git log and find the desired commit on your target date. Running git checkout SHA where SHA is the commit hash will give you the state of the source code on that date. edit: git log --since=2010-06-05 --until=2010-06-06 will help narrow it down!
I'm trying to clone a git repository from a certain date. Even if this is not possible. Is it possible to clone the git repository and then roll it back to a certain date? Example: my repository has been updated since May 2010, but I'd like to get the version from June 5th. I'd like to run the following command: git clone [email protected]:projectfolder -date 06-05-2010
How to in Git, clone a remote (GitHub) repository from a specifed date
45 Go to your Github account and remove the App Authorisation: https://github.com/settings/applications Then on Amplify, reconnect to Github, it will ask you an Authorisation and here you can choose your organisation at the bottom of the prompt box. Share Improve this answer Follow answered Sep 25, 2019 at 11:55 Sebastien HorinSebastien Horin 10.9k44 gold badges5353 silver badges5454 bronze badges 1 4 Now there is no need to delete the connection. After accessing the URL mentioned above, click on the connection name, it will display Permissions and Organization access. Under organization access you will see the list of organizations that you have access to; click on [Grant] or [Reques] button to grant Amplify access to the Organization repositorires. – eze1981 Jan 28, 2022 at 17:05 Add a comment  | 
I am trying to create an AWS Amplify application that is connected to a Github organization repository. When I am asked to select a Github repository to connect the app in AWS Amplify I do not see any of my organization's repositories. How do I connect AWS Amplify to my organization's repositories so that they are listed in the repository drop down? I have confirmed that I have admin access to both the Github organization and repository in question. It seems to me that I need to add an AWS service to the organization's Third Party Access settings in Github but I am not sure which one and how.
Cannot connect Github organization repository to AWS Amplify app
Check first if this issue persists with all browser. I have seen this error message before, where the upload succeeded with Chrome, but not Firefox.
I want ot create a release for my Github project, but when I try to upload my binary (which is a .zip file) to the release, I get the following error message: Something went really wrong, and we can’t process that file. I get the same error message if I try to upload some other files (e.g. my readme file). What could be wrong?
Cannot upload files for release in Github
Add a .patch to the end of the pull url - you can download and apply the patch on your repo: curl https://github.com/erica/NSDate-Extensions/pull/6.patch | git am
I'm using the NSDate-Extensions plugin in my iOS Xcode project. The master repo has some errors which seems to be fixed in two Pull Requests: https://github.com/erica/NSDate-Extensions/pull/6 https://github.com/erica/NSDate-Extensions/pull/7 These requests are still open and not accepted to the master repo. How can I add these to my local repo in a Git-way? It would be fine, if my local repo gets update, if their Fork gets updated later: https://github.com/Ricardo1980/NSDate-Extensions https://github.com/exalted/NSDate-Extensions
GitHub: How to add open pull requests to local repo?
Steps Create an ssh key ssh-keygen -t rsa -b 4096 -C "[email protected]" Enter passcode and then copy it pbcopy < ~/.ssh/id_rsa.pub If you don't have pbcopy, xclip or vim just type: cat ~/.ssh/id_rsa.pub add it into your GitHub Adding a new SSH key to your GitHub account remove GitHub credentials (if u were using HTTPS there is a high possibility GitHub credentials are saved in your system), we don't need those credentials since we are using SSH (Optional step) Change the remote URL to SSH >git remote set-url origin <SSH url> example : git remote set-url origin [email protected]:username/repo_name.git Enter the passKey Verify your remote url has been changed git remote -v
I cloned my company project repo using HTTPS, I want to migrate into SSH because it conflicts with my personal git account. how can I migrate into SSH instead of using HTTPS?
How to migrate from HTTPS to SSH github
Have you had a look at hub or the official gh?
Closed. This question is seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. It does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations. Closed 3 years ago. Improve this question I'd like to use GitHub more from the command line and less through the web. Of course, everything related to Git repos can be done through the Git client. But I'd like to also do GitHub-specific things like creating forks or managing pull requests. Given that GitHub seems to have a pretty comprehensive API with libraries in many languages, I was wondering if there are any good command-line clients out there to interact with GitHub?
GitHub CLI clients [closed]
You can pass-in Secrets as ENV variables. Example: ... steps: - name: Git checkout uses: actions/checkout@v2 - name: Use Node 12.x uses: actions/setup-node@v1 with: node-version: 12.x - name: Install Dependencies (prod) run: yarn install --frozen-lockfile --production - name: Run Tests (JEST) run: yarn test --ci --silent --testPathIgnorePatterns=experimental env: CI: true API_KEY: ${{ secrets.API_KEY }} In Node.js you can access it via process.env.API_KEY.
I have a basic git repo set up with github actions to build and deploy (HTML and TS files mainly). However I have to use in some API Keys that needs to be secret. So I figure out to use GITHUB SECRETS for them. How can I access GITHUB SECRETS in my js (or TS) files so it can build with github actions properly?
How can I use Github secrets in JS files
2013: If you cannot change it through Visual Studio, you can at least look for it in the local config of your repo through the command line: cd /path/to/your/repo git config --edit And you would change it there. Since 2013, Git has been fully integrated to Visual Studio, and you can access the remote git repository for a Visual Studio solution
I know this is probably a really dumb question, but I can't figure it out. When you go to your branches, right click on one, and click publish, the first time it asks you for a URL and I put in the wrong one (one that doesn't even exist haha). So now whenever I try to publish a branch, it says it can't find it and I don't know how to change the URL because the option doesn't come up anymore.
How do I change the GitHub URL in Visual Studio?
By fixing the conflict and committing the merge conflict you've already completed the merge. Git adds merge commits when necessary, it's normal but they don't record anything except that the merge took place and what files were merged if there was a conflict. If you look more closely at your log you'll see there are in fact commits from master. EDIT: Okay, try this a test. You don't have to use the merge command, you can just pull master into PersonalSite. git checkout PersonalSite git pull origin master See what gives you. If it says up to date then you have merged correctly. If you merge stuff locally like you did, then you need to ensure the local tracking branches are up to date. Always specify the branch name to pull from, git pull origin master git pull origin PersonalSite
I have a master and "PersonalSite" branch for a codebase I'm working on. I have been repeatedly trying to merge the master into the PersonalSite branch to no avail. This time, I thought I had everything straightened out, so I did: git checkout master git pull git checkout PersonalSite git pull git merge master It looked like everything was working, and it listed the set of files I would have expected, but there was a conflict. The conflict was correct and was as expected, so I fixed it, did "git add", "git commit", then "git push". But now, when I look at my git log, it just shows a commit with no code changes but a single conflict. Now, when I run "git merge master" from the "PersonalSite" branch it says "Already up-to-date." but this clearly is not the case, as none of the changes I tried to merge actually merged. What exactly do I do to get master to actually merge at this point?
git merge does not merge
The issue you are experiencing is because your top-level list numbers in your example begin with a space in front. Eliminate that space and use three spaces for the sub-level indentation. It isn't necessary to eliminate the space as it seems the key in GitHub's markdown is that there are three spaces differentiating the levels. So if you started with one space in front, the next level would have to have four spaces from the start of the line. 1. Ordered One * Unordered First * Unordered Second * Unordered Third 1. Ordered Second * Unordered One * Unordered Two * Unordered Three Ordered One Unordered First Unordered Second Unordered Third Ordered Second Unordered One Unordered Two Unordered Three
From the docs here: (https://guides.github.com/features/mastering-markdown/), you can create a nested list by indenting one or more list items below another item. But I'm trying to create an ordered list with nested unordered lists. I tried this code: 1. Ordered One * Unordered First * Unordered Second * Unordered Third 1. Ordered Second * Unordered One * Unordered Two * Unordered Three and what I get is this: How can I write this so Ordered Second automatically gets number 2. and the unordered nested lists are properly indented? Thank you.
How to write an ordered list which contains nested unordered lists (GitHub markdown)
The issue you're hitting is that calling echo "FOO=${{ github.event.inputs.foo }}" >> $GITHUB_ENV in a GitHub Action script steps does not set that variable within the current step's script, if you expand the env header for the next step you should see your dynamically-set environment variable feeding into that step What I usually do is something like this: FOO="${{ github.event.inputs.foo }}" echo "FOO=${FOO}" >> $GITHUB_ENV So you set a variable called FOO in the current step's script (making it available on subsequent lines in the same step) AND exports it for future steps
I do need it to be an environment variable and this is for a composite action specifically. In a composite action, I've tried many different ways of setting environment variables. The only way I've found to do it is to use env inside a step itself: runs: using: "composite" steps: - name: "A step" env: BRANCH_REF: "${{ github.ref }}" run: echo "The branch is $BRANCH_REF" shell: bash Unfortunately, I need to set this variable dynamically. In a regular action, I would have done something like: env: FOO: "${{ secrets.FOO }}" #... - run: echo "FOO=${{ github.event.inputs.foo }}" >> $GITHUB_ENV if: ${{ github.event.inputs.foo != '' }} Since I can't do that, I've tried a bunch of other ways that all haven't worked. This was my latest attempt, which also doesn't work: - name: "A step" run: | if ${{ github.event.inputs.foo != '' }} then echo "Set from manual input: ${{ github.event.inputs.foo }}" echo "FOO=${{ github.event.inputs.foo }}" >> $GITHUB_ENV else echo "Use FOO workflow secret input: ${{ inputs.FOO }}" echo "FOO=${{ inputs.FOO }}" >> $GITHUB_ENV fi echo "foo is $FOO" shell: bash The output I get in the GitHub console is: Run if true if true then echo "Set from manual input: My foo is a good foo" echo "FOO=My foo is a good foo" >> $GITHUB_ENV else echo "Use FOO secret: ***" echo "FOO=***" >> $GITHUB_ENV fi echo "foo is $FOO" shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} Set from manual input: My foo is a good foo foo is On that final output line, I get foo is , so it seems the environment variable $FOO is not getting set. How can I dynamically set the environment variable in my composite action?
How do I dynamically set an environment variable in a github composite action step?
Add in your repo: a template of it (secret_token.rb.template), a script able to generate a proper config file secret_token.rb based on local data found on the server (like an encrypted file with the secret value ready to be decoded and put in the secret_token.rb file) From there, add a git attribute custom driver: The script referenced above will be your 'smudge' script which will, on checkout of the working tree, generate automatically the right file.
I am trying to push a brand new, empty Rail 3.0.4 project to GitHub, but just realize that the cookie session store has a secret key: In config/initializers/secret_token.rb NewRuby192Rails304Proj::Application.config.secret_token = '22e8...' So how can we avoid it being push to GitHub? We can ignore this file (using .gitignore), but without this file, a Rails app won't run at all (and is not a complete Rails app). Or in general, other files or frameworks may have files containing secret keys too. In such case, how should it be handled when pushing to GitHub?
when you have secret key in your project, how can pushing to GitHub be possible?
You cannot pull a specific commit. See more at "Pull a specific commit from a remote git repository" Once cloned, you can checkout a specific commit (but you would be in a detached branch mode, which is ok if all you need to do is read, and not commit) git checkout d25bc0e If you had to do some modification, starting from that commit, you would create a new branch: git checkout -b newBranch d25bc0e Note: since Oct. 2014, you might be able to fetch only one commit (Git 2.5, June 2015), only if the remote server allows it. But here, I would still recommend the classic workflow (clone+checkout).
I need the source code from a specific version of a project (The SonarQube project), but I can't figure out how to pull it from git. I've added the repo as a remote (git add remote origin) and pulled the latest version from the master branch, but that is not the version I need. I know the commit I need is d25bc0e, but when I try "git fetch origin master d25bc0e" I get the error "fatal: couldn't find remote ref d25bc0e". It could be I'm doing something very wrong, I am not very experienced with Git.
Pulling a specific version with git
You can still find your status check at search by name of the GitHub action job. name: .NET on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: etc... Here is name of the job is build.
I would like to set my GitHub Actions as required status checks so that I would be able to have protected branches and prevent commits from being pushed to specific branches if they don’t pass the github actions checks. But when I go to the branch protection rules, the github actions don’t appear in the list of checks to choose from: As you can see here I do have two github actions that have been running for several weeks on my repo: So am I missing something? How do I set Github Actions as required status checks?
How to set Github Actions as Required Status Checks
OK, the answer to this question, fundamentally, is: there is no definitive way to tell. Mercurial actually tags commits with the name of the branch they were checked in to, but git simply doesn't; apparently, it isn't considered important what the name of the branch was. This was a design decision and it doesn't look like it's going to change.
On github, when I view a commit, it shows me the commit message and the changes, along with any comments at the bottom. However, it doesn't tell me what branch the commit was checked in to. Even if I 'Browse Code', it is browsing the code for a particular 'tree' (presumably the state of the code when the commit was made), rather than for a particular branch. I know that commits in git aren't intrinsically linked to a branch, but surely they are always going to be first committed into a particular branch? Isn't the commit tagged with that branch, and can I view which branch it was somehow?
How to tell which branch a github commit was for?
I recently went through this with one of my own apps. My solution was to store anything secret in a git-ignored YAML config file, and then to access that file using a simple class in the initializers directory. The config file is stored in the 'shared' folder for the Capistrano deployment and copied to config at each deploy. Config store: http://github.com/tsigo/jugglf/blob/master/config/initializers/juggernaut.rb Example usage: https://github.com/tsigo/jugglf/blob/6b91baae72fbe4b1f7efa2759bb472541546f7cf/config/initializers/session_store.rb You may also want to remove from source control all history of the file that used these secret values. Here's a guide for doing this in Git that I used: http://help.github.com/removing-sensitive-data/
I have a number of Rails apps hosted on GitHub. They are all currently private, and I often will deploy them from their GitHub repository. I'd like to be able to make some of them open source, just like the ones you can find on http://opensourcerails.com. My question is: How can I make these repositories public without giving away super secret credentials? For example, I can look in /config/initializers/cookie_verification_secret.rb and see the cookie secret for nearly every one of them. I don't understand how this is acceptable. Are these users all changing these values in their deploy environments somehow? Some users even expose their AWS secret and key! Others will instead set their AWS secret to something like: ENV['aws-secret'] although I'm not sure at what point they're setting that value. So, what are the best practices for open sourcing your Rails app without compromising your app's security.
How do I open source my Rails' apps without giving away the app's secret keys and credentials
You should add the original project as a remote to your working copy. Then you can pull changes from the original repository and push them to your forked repository. The commands for this look something like: git remote add upstream <original repo url> git pull upstream master git push origin
On github, after I fork a project, modify it, then submit my pull request, it seems that I have to delete and re-fork in order to stay current with any changes made after my pull request is honored. It seems tedious to have to keep deleting the repo to keep it current. Is there some way to keep it current without deleting and re-forking?
after I fork a github project, how can I stay current with the original project?
Gitlab might be useful. It is a self-hosted Git management software. You could also try out Github Enterprise for 45 days and see how that fits your needs.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. Closed 10 years ago. Improve this question I am interested in an open source github clone. I know I can host my own git repository and push to it. I would like a web interface for it. Alot of features that github or bit bucket offers. Why not just use github? For no other reason than to just play with new technology. In short, Im looking to have my own github on a server I own. Is there such a thing out there? Unfortunately, googling github clone or open source github returns actual github pages as those are both key terms in relationship to github itself.
Open source github like web interface [closed]
The reviewer who requested changes has to either "dismiss" the review or "approve" the change. You might think you addressed everything, but the reviewer might disagree ;-) It'd be nice if there was a way to differentiate between "<reviewer> requested changes" and "<reviewer> requested changes, and <submitter> updated the PR", but there currently isn't any.
I'm a Pull Request owner (I have created this Pull Request / branch). I asked my boss to review my code after I completed working on it and it passed the build tests. The boss reviewed my code and requested several changes / asked several questions about my code changes. I have changed the code and answered all the comments however "Changes requested" label still presented for this branch. What did I miss? (Sorry for such a simple question, I'm new with GitHub and I could not find answer for this problem in GitHub Helps.
GitHub: Changes requested label stay after I answered all the code review questions