Questions tagged [github]

16757 questions
1

votes
1

answer
242

Views

All the commit history from SVN is not migrated to GIT

I am a developer and for the first time , I am migrating my whole SVN repository to a GIT repository. As a POC, I have migrated current development branch. Migration was successful with the history as well. Problem : SVN commit history in GIT Result of migration : All the history of current dev bran...
Venkata
1

votes
1

answer
19

Views

Git: Update my remote git to be the same as my local

I'm relatively new on git, so keep that in mind. So, I have three branches: master b1 b2 This is how my local and remote repository look like. At one point, I merged b2 in to the master, and deleted b2 (all of this on my local repository). Lastly, I pushed my master to my origin/master. My questio...
Dimitris Pantelis
1

votes
2

answer
239

Views

Moving the Git Repository to a Child Folder

I'm using Github with my Wordpress website. Currently it tracks the parent Wordpress folder, which essentially tracks everything. I'd like it instead to have a git with only the theme, which is located at wp-content/themes/lighthouse Is there a simple way to have this repository only be the theme r...
James Mitchell
1

votes
0

answer
73

Views

github Oauth with Angular Error

getUserFromGithub() { const client_id = 'c****************c'; const redirect_url = 'http://localhost:4200/oauth2/github'; window.location.href = this.github_redirect_url + 'authorize?client_id='+ client_id+'&redirect_uri='+redirect_url+'&response_type=code&scope=*'; } Above angular method redirects...
Saurabh Verma
1

votes
2

answer
47

Views

PhpStorm Git file adding issue

Problem: 'Git > Add' doesn't seem to do anything, and 'Git > Commit File' says 'No changes detected', when git from the command line sees changes and can commit/push files. Details: I'm using PhpStorm 2017.3.2 (evaluating it) on OSX . I have a project that I've clone from GitHub. Git is configured....
Mehmet
1

votes
1

answer
38

Views

How to add inline CSS styles to an element for which the source of the CSS is a file (and not inline text) that you can't feasibly edit?

I have an html page (index.html) and css page (styles.css) with various elements (including a table) and styles: index.html: ... ... ...
Joshua Mitchell
1

votes
1

answer
64

Views

GitHub Get an email when someone follows me

Maybe I'm missing something super obvious, but I went into my notification settings and can't find anything about getting emails when people follow you. I can always go to my Followers tab on my profile to see who is currently following me, but I'd like to get updates. The only way I found out new p...
SleekPanther
1

votes
0

answer
77

Views

How to use PR on GitHub for Laravel Packages?

When I want to make a pull request for a Laravel package on GitHub I do it at the moment in the following way: Create new Laravel project Require & install the package Delete the add-on files from the project in the vendor folder Fork GitHub and clone files into the project folder Make changes to pa...
Adam
1

votes
2

answer
47

Views

How to integrate a java project into an existing Android Studios project

I'm building my first Android app and I found a java project on github that I would like to integrate with my app. Is it possible for me to manually add the java files to my android project directory at app -> java -> com.example.appname The src -> main directory of the java client has a nested fil...
Omega Collision
1

votes
1

answer
422

Views

GitHub API to upload image using ajax

I use GitHub API with JS to create a small script #Create,#Delete,#Edit E.g: function createfile(/* url , */ fileName,fileMessage,fileContent){ var filename = /* 'firstfile.txt' */ fileName; var filemessage = /* 'uploading a file' */ fileMessage; var filecontent = /* 'The data of the file2.' */ fil...
zahaby
1

votes
1

answer
339

Views

git reset --soft HEAD^ is not undoing my commit [duplicate]

This question already has an answer here: git reset asks 'more?' 3 answers I'm trying to undo a commit and duplicate the commit, but when I use git reset --soft HEAD^ (as it was explained to me) it appears this question: More? When it was being explained to me, the More? statement wasn't mentione...
cyber_angel
1

votes
1

answer
191

Views

How to push the code from cloud9 to Github?

​I tried lots of times but all failed. My steps shows below add SSH key from cloud9 at my github and connect cloud 9 with my github new a repo called [email protected]:XXX/XXX.git​ enter the file in cloud 9 git remote add origin [email protected]:XXX/XXX.git​​ git push -u origin master​ Warning:...
Qiyu Zhang
1

votes
1

answer
26

Views

github saving containing directories

When I push my project to github, the the repository also saves the the directories containing the project. For example if I have a project in the directory webdevstuff on my desktop, git will save the repository as desktop/webdevstuff/project instead of just the project directory Sorry for the dum...
user8972341
1

votes
0

answer
104

Views

How to build litecoin without using gitian?

i am trying a simple litecoin fork , its mostly done and i did the fork ,mined the genesis block , the step i am stuck on is to do the gitian build for it . i think that the gitian build is only needed for wallet (i think, pls correct me if i am wrong) , but i wanted to know that if there's a way to...
Regreg
1

votes
1

answer
798

Views

How to use an external library for C++ in VS2017

I've been programming in Python for over a year now but am just learning C++ and am unfamiliar with how to go about using external libraries, CMake and github for that matter. I'm trying to use an external library called cpr - https://github.com/whoshuu/cpr. So far I've followed the instructions in...
jp94
1

votes
1

answer
1.3k

Views

error: open(“AppData/Local/Comms/UnistoreDB/USS.jtx”): Permission denied

I use $ git add . but it is print: error: open('AppData/Local/Comms/UnistoreDB/USS.jtx'): Permission denied error: unable to index file AppData/Local/Comms/UnistoreDB/USS.jtx fatal: adding files failed If I use run to open it in Windows 10 pro 1703, it asks to open with another program (last time it...
黃天貓
1

votes
1

answer
43

Views

How to sync git repositories when central git repo (GitHub/BitBucket) is not available

Normally I push my git-changes from my development machine to BitBucket. This triggers a webhook to my other machine, which initiates a pull from BitBucket. [my machine] \ +---1.push--> [bitbucket] [other machine] However, it is possible for BitBucket to not be available sometimes. So I also want t...
doekman
1

votes
0

answer
715

Views

Git push freezing at git-receive-pack

So I am trying to use git push on a fairly large repo, but it always seems to get stuck at the end at POST git-receive-pack (71245363 bytes). I have tried this solution but it doesn't seem to have any effect. Thanks in advance... $ git push origin master --verbose Pushing to https://github.com/obiwa...
Inobulles
1

votes
1

answer
358

Views

VSTS issues connecting to GHE (HTTP 403)

We haven't changed anything in VSTS (Visual Studio Team Services) and are suddenly getting HTTP 403 errors in our 'Get Sources' build step when trying to pull code from GHE (Github enterprise). 2018-01-10T01:45:07.5198700Z remote: Your account is suspended. Please check with your installation admin...
s g
1

votes
2

answer
675

Views

remote: Repository not found for git pull

When I do git pull I get the following error remote: Repository not found. fatal: repository 'https://github.com/repo.git' not found But when I run git pull https://[email protected]/repo.git, git is able to pull the repo and doesn't ask for a password. Why do I need to mention my username now?...
2ank3th
1

votes
1

answer
587

Views

In Github, how to search repositories with multiple keywords?

Github search example I want to search these repositories which's title contain 'keyword-1' or 'keyword-2' or 'keyword-3'. I have read the Github search help documents and search api documents, But I still have no idea how to search with multiple keywords. Thanks.
codesve
1

votes
1

answer
25

Views

Mirroring some selected folder(s) in a private repository into a public repository

In the company, we are developing an enterprise version on top of the already existing open-source edition of our product. For practical purpose, we would like to have the codebase of both the enterprise and open-source edition on a single monolithic git repository to keep the development process si...
lolski
1

votes
0

answer
36

Views

Anonymous editing of Jekyll page in Prose editor

I want to let anonymous visitors of my site based on Jekyll-Github-Pages do some edits without logging in. Here is sample page which is must easy switched to Prose.io interface with the following link: [Edit](http://prose.io/#indexmod/{{site.repo}}/edit/{{site.branch}}/{{page.path}}) This link jus...
Andrei Dei
1

votes
0

answer
809

Views

Curl(28): Timeout was reached

On attempting to upload some files to my web server using this script #!/bin/bash gitLastCommit=$(git show --summary --grep='Merge pull request') if [[ -z '$gitLastCommit' ]] then lastCommit=$(git log --format='%H' -n 1) else echo 'We got a Merge Request!' arr=($gitLastCommit) lastCommit=${arr[4]} f...
Harry Cameron
1

votes
1

answer
23

Views

Add a file to a Github repo that will be cloned, but not tracked

I feel like this question must have been asked before, but I'm not finding it on here. I have a file that I want in a GitHub repo, in this case a file in which the user would paste their API keys after cloning. I want this blank file to be cloned down, but I don't want it to be tracked or pushed. I...
jwong1219
1

votes
0

answer
49

Views

GithubPages: how to enforce custom Content-Type type for any file?

We are currently using Github pages as a simple API mock server. We put all mock files under docs/ and simply GET username.github.io/project/api/someAPI to retrieve data. However, by default, the Content-Type returned by Github Pages is application/octet-stream instead of application/json for files...
lz96
1

votes
4

answer
97

Views

Change Github branch name

I have a repository in Github with two branches, master and dd. I gave the name dd by mistake and I want to change this name to something else from the Github GUI. I didn't find a way to do so in the branch webpage: https://github.com/user/repo/tree/dd nor in the branches option page (I do have an o...
pntshere
1

votes
2

answer
334

Views

Disqus comments on Jekyll show when hosted on localhost but not when hosted on GitHubPages

I've created a blog type page using Jekyll and hosting it using GitHub pages. I've recently tried to add disqus comments; when inside my directory and I run a Jekyll serve and I access my page via localhost:4000 the comments are there and are fully functional. My problem comes when I push my changes...
Grilla99
1

votes
0

answer
285

Views

SonarQube: Configure VSTS to analysis GitHub Pull Requests

I am using VSTS for CI and CD. We have a workflow which involves pull requests in Github. These are automatically built and tested by VSTS. I am trying to add SonarQube analysis to this workflow. I have tried adding the SonarQube VSTS plugin from the marketplace and then passing the github parameter...
1

votes
1

answer
91

Views

Merge Pull Request from Upstream Branch into a Forked Repository

I'm new to git, so forgive me for any mistakes I make with my terminology. I have a forked repo. In the origin repo, someone makes a pull request containing a bunch of different commits. That pull request is then merged into the origin. I would also like that pull request, so I want it merged into m...
master565
1

votes
1

answer
227

Views

Module Resolution: NPM Install Typescript package from Github

So I want to fork an existing npm package, written in typescript, and mod it to my specific (non generally useful) needs. I learned how npm also installs from github branches, no problem there. But when I do so, module resolution doesn't work anymore (no modifications done). It does work perfectly w...
L00ps
1

votes
0

answer
49

Views

Why does github merge base into feature branch after conflict

We use feature/develop/master branches for our development. When a feature is done (Let's call it feature/123) we send a pull request to merge to the develop. Sometimes this merge has conflicts so we use Github to resolve the conflict. My question is why would github merge the entire develop branch...
MMM
1

votes
2

answer
95

Views

In Github, how do I figure out what remote branches I can push to?

How do I see what branches I have access to push to? I just accepted an invitation from our admin to a GitHub project and switched to the branch where my code was localhost:myproject davea$ git checkout unit_tests_20180116 Switched to branch 'unit_tests_20180116' but when I try and push my changes,...
Dave
1

votes
1

answer
234

Views

R Failled to install any github packages (Not curl::curl_fetch_memory issue)

I am using Windows 10 and the latest R, Rstudio, and Rtools. My R can weelinstall packages from CRAN but not from Github and get very weird message. I've looked through similar questions in Stackoverflow, github issue, and Google search and found no answers. I tried to reinstall R, Rstudio, and Rtoo...
sammo3182
1

votes
2

answer
60

Views

How to handle different parts of a project using GIT?

Im an electronic product designer, and my projects consist of various parts, like: Hardware design Software design Housing design Instructions Pricing Etc I have a main project folder, and every part in a separate subfolder. Right now im using GIT, and i create a new repo for every aspect of the pro...
Martin
1

votes
1

answer
223

Views

How to link GitHub Repo to EC2?

I am trying to accomplish something I thought would be really simple, but has turned into a major hassle that has me stumped. I am trying to create the simplest basic Git workflow example using a Github repository, an EC2 instance with LAMP stack installed, and a single index.html file titled 'HELLO...
user3826864
1

votes
1

answer
1.1k

Views

Github push failed in IntelliJ

I created 2 repos by github MacOS desktop in my project, using my new github account. But when I am trying to push commits through IntelliJ, there is a 403 error, but I can push successfully in github Desktop. remote: Permission to Auird/OJ.git denied to auicheng. fatal: unable to access 'https://gi...
Aui Cheng
1

votes
3

answer
3.1k

Views

Github webhook error: We couldn’t deliver this payload: Service Timeout

I tested curl and postman with the same payload URL and payload body I had in Github settings/hooks tab. It works well in curl and postman but It doesn't work on Github settings/hooks with with errors such as service timeout. ps. I used Github enterprise host, API and repositories.
quki
1

votes
0

answer
41

Views

Why GitHub pull request “back-merges” when resolving conflicts

When resolving conflicts in a pull request via Github Editor I always end up with 2 merges instead of one. Example: I want to merge unsynced changes on master (A) into feature branch Create pull request base:feature head:master (B) Github detects conflicts I resolve them using Github UI editor I mer...
BennyHilarious
1

votes
1

answer
48

Views

How do I find username by email using github rest api?

I need to remove a member from the organization, but I have only email id of the user and the organization name. One Solution I found is to fetch all the members of the organization, find the user with matching email, then remove that user from the organization using the username. Any straightforwar...
Dinesh Ramasamy

View additional questions