Questions tagged [github]
GitHub is a web-based hosting service for projects that use the open-source Git revision control system.
368 questions
0
votes
1
answer
162
views
GitHub workflow for .NET desktop apps that supports CI/CD and entity framework
We want a GitHub workflow that syncs EF migrations across all branches and automates ClickOnce desktop app deployments. The key requirements of this question are highlighted in bold at the bottom.
...
1
vote
1
answer
253
views
How to manage connection strings for CI/CD and local debugging that works for .NET Framework web apps and desktop apps?
We want CI/CD to inject the production connection string into a .NET Framework app.config during deployment.
In source control, we only want test/staging DB connection strings.
Developers should ...
0
votes
1
answer
172
views
What is the best way to manage git workflows for applications built on top of in progress libraries?
I am doing something I haven't done prior, which is that I built a library (that is still in progress as it is somewhat ambitious), and now I am developing an application on top of the "alpha&...
-1
votes
1
answer
236
views
Where is the source code for the GitHub fork of Git? [closed]
I may be misunderstanding the GPLv2 license of Git itself, but I thought that "distribution" of a derived work requires the source to be released.
According this post, GitHub is running a ...
-2
votes
4
answers
299
views
Strategies for Analytics GitHub Activity to Enhance Team Productivity [closed]
As a manager of a growing software team, I aim to monitor our GitHub repository activity to improve team productivity and identify any development bottlenecks. My goals include:
Insights about the ...
24
votes
4
answers
10k
views
How can I start using Git in a project that is already underway?
I'm developing a personal project that wasn't originally intended to be public (just for me, testing, fun, learning, etc.) This project has grown a bit and become serious enough that I now want to ...
7
votes
1
answer
767
views
Etiquette of mentioning issues/PRs from other projects (backlinks)
On GitHub, when an issue in small project calimero mentions an issue in big project godzilla, a backlink message appears on the issue in godzilla. For example, suppose a hard-to-fix bug in godzilla ...
13
votes
2
answers
6k
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 ...
1
vote
1
answer
373
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 ...
9
votes
3
answers
7k
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
193
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 ...
2
votes
1
answer
3k
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
371
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
409
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
113
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
991
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
247
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
715
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
206
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
2
answers
529
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
169
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 ...
1
vote
1
answer
2k
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
792
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
925
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 ...
3
votes
1
answer
792
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
3
answers
1k
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
817
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
177
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?
...
10
votes
3
answers
8k
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 ...
2
votes
1
answer
4k
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
518
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
573
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
793
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
142
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
4k
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
152
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
1k
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
217
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
4k
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
116
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
2k
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
10k
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
209
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
239
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 ...
5
votes
0
answers
1k
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
769
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
320
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 ...
106
votes
5
answers
21k
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 ...
2
votes
0
answers
137
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
848
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. ...