Questions tagged [github]
GitHub is a web-based hosting service for projects that use the open-source Git revision control system.
363
questions
13
votes
2
answers
3k
views
Pull request merge process requiring rebase after every commit merged into master?
I'm working in a codebase at work that requires that anyone who wants to merge a PR rebase against the last master prior to merging the pull request. To further complicate things, CI (which takes ...
-3
votes
0
answers
26
views
How do you set up a Go repo to use a private repo in the most convenient way? [closed]
We wish to decrease the amount of duplicate code in our organization, and part of that is to move functionality into separate private repos on github.
We onboard new people, and use a number of ...
1
vote
1
answer
65
views
Advice on Developing Shared Public Libraries in Visual Studio
I’m looking for some advice on best practices for Visual Studio workflows.
I maintain several C# libraries which I use in various projects I develop. I also make them available publicly, as packages ...
1
vote
2
answers
315
views
How to automate version bumping, when version bumping involves changes in source code and a git tag?
I have a small open source package and I'm trying to automate parts of the release life cycle. I am very confused about how to automate version bumps. Here's the relevant information about my version ...
-1
votes
1
answer
93
views
Migrating from Bitbucket to Github and using Git Flow
In our team we have up to 50 repos, of which about 15 are worked with regularly. The others are rarely changed, but it happens that we bring in 1-3 additional repos per release and work with them.
We ...
0
votes
1
answer
558
views
What are the best practices for Github Actions when it comes to splitting a wofklow into multiple jobs?
I'm trying to understand the best practices of Github Actions when splitting a workflow into multiple jobs.
First of all, is it generally a good idea to split a workflow if the steps are logically ...
0
votes
3
answers
247
views
Using GitHub repository as API
I have a set of complex data, which I use on various subdomains of my project. Data are static most of the time, it changes few times per year.
Currently, it's hardcoded in every project which needs ...
-3
votes
2
answers
275
views
How to use Github Copilot for business software evolution (if possible at all)?
Github Copilot got update yesterday (2023 St. Valentine) https://github.blog/2023-02-14-github-copilot-now-has-a-better-ai-model-and-new-capabilities/ but still no information for its use in the ...
0
votes
2
answers
69
views
Seperate related repos or create a single repo for the whole project? [duplicate]
I'm pretty new to Github and I have one question I couldn't really find a clear answer for it.
Let's say I have a project called "Practice". In this project I would like to create different ...
0
votes
3
answers
346
views
Is there any advantage of pushing branches to GitHub without an associated PR?
I work with other Software Engineers on a web app product. Also, the source code is hosted on GitHub.
There is a behavior pattern that I do not understand. Some co-workers push branches (adding ...
0
votes
1
answer
99
views
What is the correct way to deal with Pull Request updates concerning an interface with a Continuous Integration script: rebase or merge?
I work with other Software Engineers on a web app product. Also, the source code is hosted on GitHub.
Recently, there was an introduction of a Continuous Integration procedure enabled by a script ...
0
votes
2
answers
119
views
A feature branch on top of another feature branch (dealing with PRs)
As shown in the following image, I have two different branches with their corresponding PRs (PR1 and PR2). The top arrow is the develop branch.
PR2 is build on top of PR1. PR1 is build on top of ...
-1
votes
2
answers
89
views
Template Source Control Repository
What is the best practice, for creating a template repository, and then creating n projects based on that template?
With "template" I mean: Let's say the template site is x. So x is a site ...
1
vote
1
answer
342
views
C# Source Generator : which way to go for a simple GitHub Community Project
CONTEXT
My project is about implementing the "conventional method for house-energy-efficiency assessment" in France (120 pages). I want to provide a strict yet easy to use API to this method....
-1
votes
2
answers
124
views
Workflow suggestions: Editing on one computer while running on another?
I own a laptop and a desktop. The desktop better for training neural networks, but I don't have physical access to it. The laptop is better for day-to-day work on the neural networks. Right now, my ...
0
votes
1
answer
622
views
Should tags be introduced on commits still in Pull Request branches outside of main/master branch?
Context: I am working on a project in which people use tags on commits yet in branches waiting on the Pull Requests queue of GitHub. This means they are non-merged to the main branch yet.
The problem ...
2
votes
2
answers
384
views
Shared Branch while working on User Story
Two developers (front-end and back-end) are working on one User Story, while the front-end is dependent on the work of the back-end. What is the best way to handle this dependency regarding the ...
-4
votes
2
answers
164
views
How can I use data from another remote repository without including it in my repository?
I currently have a CI workflow for tests that use data present in my repository. However, since this data is very large, I would like to move it to another remote repo and somehow give my CI tests ...
2
votes
1
answer
297
views
Releasing a project for multiple languages and package managers
My friend is building a small open-source project with a few convenience functions. He'd like to release both JS, PHP and Python versions of the package to npm, packagist and pypi. The main part of ...
4
votes
2
answers
501
views
Should PR reviews check for code correctness?
When doing PR reviews, should the reviewer be checking that the code is correct (e.g. the logic is correct, etc.) or should the only focus be higher level concepts (e.g. architectural/functional/etc.)?...
1
vote
2
answers
177
views
GitHub Versioning - Organizing Structure
I am making a JS library that creates graphs and charts using canvas. I have hosted it on GitHub as a public repository.
So after looking at some other related questions, I have figured out two ...
-4
votes
1
answer
131
views
In terms of Software Engineering, can GitHub be Agile? [closed]
I know this question might sound stupid to many, but - in terms of rigorous IEEE definitions - can we say that GitHub allows some kind of Software Life Cycle or some management paradigm in particular?
...
9
votes
3
answers
4k
views
Should I gitignore env files in my private repo?
I have some .env files for my backend application and the usual recommendation is to put all .env files in gitignore to not share it in the repo and use something like Github Secrets to store the .env ...
1
vote
1
answer
2k
views
Appropriate naming for (GitHub) repositories belonging to the same project [closed]
I have some issues selecting an appropriate naming scheme for GitHub repositories that belong to the same project. The main package repo relies on additional repos to generate documentation or run ...
-1
votes
2
answers
297
views
Nightly build, GitFlow and PR [closed]
My customer decided to have an automatic nightly build based on develop branch.
We usually make a feature branch (and if it is necessary we provide a release compiled manually on that branch) and when ...
1
vote
2
answers
404
views
Git branching model that support small changes and downstream dependencies
Challenge:
I am implementing a microservice/app/applet.
Several features will be delivered
As things develop later features rely/depend on earlier Pull-Requests (PR)
Developer resoruces are finite, ...
3
votes
1
answer
481
views
Setting up tests and a continuous integration pipeline in a polyrepo environment
In the past I've mainly worked with monorepos, specifically a Vue.js app that was served by a rails backend.
Setting up E2E/integration tests in the CI was simple, because all the required parts were ...
1
vote
0
answers
101
views
List Git branch currently on each EC2
We have a handful of AWS EC2s set up for testing ongoing feature developments. I'm wondering if anyone knows an easy, automated way to keep track of which git branch we're testing on each EC2. Maybe ...
1
vote
4
answers
2k
views
Can I upload the entire postgres DB on Github?
Basically, here's the problem.
I work remotely for a company, and I need to have a local copy of the production database to play around with it and test my work on it before pushing the code. The prod ...
0
votes
0
answers
127
views
Sole software engineer for a small company. How to handle deployment?
I'm the only software engineer for a small company and I want to make my deployment process more robust because I can't work away from my dedicated workstation with my current process. I only make ...
0
votes
1
answer
536
views
What to do with a big pull request for just one feature?
We are using git flow as a branching model, and we have a feature ticket that conceptually is a pretty small feature in the software management tool, in this case Jira.
The thing is that the code on ...
0
votes
2
answers
178
views
Is editing a Github/GitLab issue a good idea?
I'm starting to define how issues should be handled in GitLab. Most specifically whether the author should be editing the original issue to keep it up to date or use only comments.
Let's say that you ...
0
votes
1
answer
3k
views
How to organize multiple microservices in a GitHub repository?
I am setting up a Github repository for a project that will have multiple Microservices.
I have created a sub-directory for each microservice under One Repository.
ProjectRepository
\Services
...
0
votes
3
answers
99
views
How do I create a second App in git where only a few files throughout the Tree are different from the first app
I will have to create a second app based on the first app. The second app shares 98% of the code (Some of the UI is different). I am wondering how to set up the second app without creating a merging ...
-3
votes
2
answers
993
views
Correct standard to do a pull request when the local branch is outdated against the remote repository
The scenario is the following:
For a project, such as Spring Security available on github, the following is accomplished:
forked and cloned
git remote add upstream URL-Remote-Repository
git fetch ...
33
votes
3
answers
9k
views
What is the best way to code review a work-in-progress?
I am working on a feature with a system that I am unfamiliar with. The feature is not ready, but I want to show the code to my team (who is familiar with the system) so they can give me early ...
0
votes
1
answer
168
views
How would one go about connecting API routes from one GitHub repository to another?
This may be a basic question, but I'm having some difficulty finding an answer online.
My project is a MERN application that draws from an existing open-source API. This API utilizes a database that I'...
1
vote
1
answer
147
views
Distribute commit files between different repositories
I am not sure if what I'm asking is even possible (or desirable, for that matter), but we were wondering what would be the best way to handle SQL changes to a Database schema, when this schema is ...
4
votes
0
answers
711
views
GitHub flow: how do I test my changes that cannot be tested locally?
I am trying to start using GitHub flow in my project. I like that it is simple and, more importantly, it encourages continuous delivery.
However, there is one thing about this flow that I cannot ...
-1
votes
1
answer
411
views
Git merging on an existing PR
wanted to know if this is possible.
Consider we have Branch A that is in a PR waiting to be merged. On a local branch, I pull the changes made in branch A and now they exist in my branch B. I ...
-4
votes
1
answer
190
views
Proper style for Github naming conventions
I am new to the world of open source and just set up my Github account. I was wondering if there any naming conventions/styling guides to follow when naming things such a repositories. For example, in ...
105
votes
5
answers
18k
views
Should I submit a pull request to correct minor typos in a Readme file?
While going through the README file of a GitHub repository I am not a contributor of, I noticed a few minor typos and wondered if I should submit a pull request to correct them or if reviewing the ...
13
votes
2
answers
17k
views
Should frontend and backend be on separate GitHub repos?
We are new to git, but this fundamental question needs to be sorted out before we can begin. It's two devs who have been working standalone for a while. Now the time has come to adopt git (at the ...
2
votes
0
answers
121
views
Minimizing infrastructure code surface for NodeJS microservices and libraries
My company has about 200 repos for microservices and libraries that we share. It's largely been great, but it's hard to keep DRY at the organizational level. We'll often have a large amount of package....
-1
votes
2
answers
632
views
Should we create review branch in github to story or subtask of jira?
I have an 8 pointer Story. Let’s call it for example XX1234
I have created 4 subtasks based on the list of actions to follow to complete the whole story implementation:
1. XX1235
2. XX1236
3. ...
-4
votes
1
answer
116
views
What to concern when publish code with an API call on GitHub? [closed]
I'm learning the way to use API right now. Since I want to publish the code on GitHub, I have some question about it.
1.
I will use public API, however, there are APIs with authorization and those don'...
1
vote
1
answer
418
views
How to design config files for each environment in github?
I have a list of application configs and business configs in a particular root folder inside our git repository.
Below is our current structure as of now:
We have a root Data folder and inside that ...
69
votes
8
answers
15k
views
In code review, should I ask to do a refactor outside of the scope in a pull request?
I have been studying the best practices for a code review, and I was wondering what to do in the following scenario:
During a code review, I see potential improvements, but decide that they are ...
-2
votes
1
answer
100
views
How to start developing a well architected Javascript Library?
I want to start developing an. open-source javascript library. I can see other open-source libraries are well structured. They have src, dist, test kind of folders, etc.
Which is making me very ...
-1
votes
1
answer
104
views
What is the most effective way to explain code in a code review using a pull request?
I work for a small company with only three programmers (including myself).
Our workflow is:
We write the code;
We create a pull request on Github;
We ask for code review;
We merge the pull request.
...