Skip to main content

Questions tagged [github]

GitHub is a web-based hosting service for projects that use the open-source Git revision control system.

Filter by
Sorted by
Tagged with
23 votes
4 answers
9k 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 ...
Foxy's user avatar
  • 491
0 votes
0 answers
45 views

Automated API Versioning

I did research about this and I'm facing with two challenges: how to handle version deprecation in my CI/CD pipeline, when we have more than one major versions officially functional and others ...
Hirbod's user avatar
  • 1
7 votes
1 answer
743 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 ...
gerrit's user avatar
  • 1,110
13 votes
2 answers
4k 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 ...
roulette01's user avatar
1 vote
1 answer
199 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 ...
Mark Olbert's user avatar
6 votes
3 answers
3k 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 ...
Jagerber48's user avatar
-1 votes
1 answer
117 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 ...
Rattletrap's user avatar
0 votes
1 answer
2k 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 ...
heapOverflow's user avatar
0 votes
3 answers
269 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 ...
Pavel Štěrba's user avatar
-3 votes
2 answers
369 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 ...
TomR's user avatar
  • 1,003
0 votes
2 answers
82 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 ...
Hilow's user avatar
  • 11
0 votes
3 answers
420 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 ...
Pedro Delfino's user avatar
0 votes
1 answer
200 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 ...
Pedro Delfino's user avatar
0 votes
2 answers
236 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 ...
mgNobody's user avatar
  • 119
-1 votes
2 answers
132 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 ...
Divan's user avatar
  • 349
1 vote
2 answers
476 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....
Lionel du Peloux's user avatar
-1 votes
2 answers
133 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 ...
Ari Herman's user avatar
0 votes
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 ...
Pedro Delfino's user avatar
2 votes
2 answers
631 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 ...
mdiebels's user avatar
-4 votes
2 answers
566 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 ...
Aditya Tomar's user avatar
3 votes
1 answer
513 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 ...
Anna's user avatar
  • 157
4 votes
3 answers
964 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.)?...
Adam Thompson's user avatar
1 vote
2 answers
414 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 ...
TalinTheDev's user avatar
-4 votes
1 answer
142 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? ...
dvlp_icn's user avatar
10 votes
3 answers
6k 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 ...
Vencovsky's user avatar
  • 371
2 votes
1 answer
3k 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 ...
mluerig's user avatar
  • 147
-1 votes
2 answers
384 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 ...
AP.'s user avatar
  • 107
1 vote
2 answers
501 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, ...
will's user avatar
  • 149
3 votes
1 answer
590 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 ...
Johannes Stricker's user avatar
1 vote
0 answers
123 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 ...
UnhandledException's user avatar
1 vote
4 answers
3k 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 ...
Saad Rehman Shah's user avatar
0 votes
0 answers
131 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 ...
kryz's user avatar
  • 35
0 votes
1 answer
804 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 ...
Mauricio Pastorini's user avatar
0 votes
2 answers
190 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 ...
cuoka's user avatar
  • 119
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 ...
Jasper2000's user avatar
0 votes
3 answers
103 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 ...
Ride Sun's user avatar
  • 117
-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 ...
Manuel Jordan's user avatar
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 ...
Evorlor's user avatar
  • 1,550
0 votes
1 answer
203 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'...
Serendipital's user avatar
1 vote
1 answer
184 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 ...
Nelladel's user avatar
5 votes
0 answers
930 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 ...
yaskovdev's user avatar
  • 169
-1 votes
1 answer
610 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 ...
George's user avatar
  • 11
-4 votes
1 answer
249 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 ...
golden543's user avatar
105 votes
5 answers
19k 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 ...
Florent Michel's user avatar
2 votes
0 answers
131 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....
Nick Sweet's user avatar
-1 votes
2 answers
774 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. ...
Gowthami Reddy's user avatar
-4 votes
1 answer
131 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'...
Hung Vu's user avatar
  • 113
1 vote
1 answer
525 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 ...
cs98's user avatar
  • 21
69 votes
8 answers
16k 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 ...
Tisp's user avatar
  • 817
-2 votes
1 answer
101 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 ...
Saba Naeem's user avatar

1
2 3 4 5
8