Posts by egomesbrandao • 2,026 points
85 posts
-
0
votes1
answer111
viewsA: Git push to in "Total"
Update your git! Most connection errors, when other people continue to push, for example, if it is due to lack of git update. In Windows a good idea is to install git by Chocolatey, a package…
gitanswered egomesbrandao 2,026 -
4
votes2
answers206
viewsA: When to use GIT ADD?
Yes, you need to add the changes you want to the next commit, but you can use a shortcut: git commit -am [mensagem de commit] Notice the a (lowercase) parameter there, it means that it will add the…
gitanswered egomesbrandao 2,026 -
0
votes1
answer69
viewsA: GIT FLOW How do I keep files in the master branch and develop and the release do not merge by deleting?
The files get erased because as they cease to exist in the development branch, when you merge, it understands that you want to delete them too, that’s how git works. It would also be possible to use…
-
1
votes1
answer56
viewsA: Git/ Github Repository Error
Git is interesting because it is based on folders and files from the operating system, so there is a hidden folder ". git", in the folder you created the repository with the "git init command". So…
-
1
votes1
answer1218
viewsA: Git can’t push my project... and other commands are also giving fatal
Your first push attempt was stopped because the target repository was in front of your local repository. Since you made several changes, including creating a new repository within the current…
-
0
votes1
answer64
viewsA: Can you configure an automatic pull using windows task scheduler?
Yes, there is a better way to do this, and it is through a practice known as Continuous Delivery! The practice of continuous delivery, in Portuguese, or simply CD, is responsible for executing the…
-
3
votes3
answers14398
viewsA: How do I create a folder inside my Github repository?
A Github repository is a Git repository, and it works exactly like one, either by command line, but also the site provides tools for some of the main commands, which includes creating files, see:…
-
3
votes1
answer48
viewsA: How to sync Github with npm
What you need is an automated build process, or IC, continuous integration of code, this process is responsible for compiling or transpilation, in the case of javascript, run tests and package the…
-
1
votes1
answer404
viewsA: When I push to git, characters with "Place" accents. How to resolve?
This character usually means invalid, meaning you have an Encode problem. Check the Find configuration in your Eclipse IDE, because it’s not being able to interpret the Find of the files you’re…
-
0
votes1
answer62
viewsA: deletes a folder locally but can’t save the change remotely on github "Everything up-to-date"
Git does not versioning empty folders, so only deleting the contents of the folder will cause it to quit versioning. I created a file with a file at the root and two files in a folder: In Git it is…
-
1
votes1
answer66
viewsA: How do I browse a Git repository?
Look for ready-made software that will already give you these metrics: Sonarqube Test Metrics qTest Insights Test Metrics Another point: Look for metrics that are used today: Cycle time: How to…
gitanswered egomesbrandao 2,026 -
0
votes1
answer40
viewsA: SERVER problem - lost my repository
In git you don’t lose anything! If you had this file on the server, and now you don’t have it anymore, someone deleted it, you’re not being able to push it because the repositories are inconsistent!…
gitanswered egomesbrandao 2,026 -
2
votes1
answer79
viewsA: How do I manage a git for two domains?
Although Git is used as the main medium of publishing, it is not the only tool to be used and in this case you should make use of a pipeline tool, which will help in a compilation process (in your…
-
0
votes1
answer41
viewsA: Routine backup of development files
When it comes to code files, and related, for example: images that are in the application, audio file, etc...; the best practice is that all this is versioned into one version controller. Currently,…
-
0
votes1
answer82
viewsA: On the production server I use git as Fork or clone? what is the best structure for an active project?
The best way to publish an application is not by Git, but by an CI (Continuous Integration) process. In fact, CI, will solve only build (build), run tests, package, etc... and an automatic…
-
1
votes1
answer190
viewsA: Delete Directory via Git Bash - Error: Device or Resource Busy
To force the removal of a directory/folder use: rm --recursive -f [diretório] Where: f: force to remove recusive: will fetch the files below the directory passed as parameter To learn more about the…
gitanswered egomesbrandao 2,026 -
0
votes2
answers278
viewsA: Why is GIT ignoring one folder and others not within wwroot?
The Backup folder is being ignored as it is in the . gitignore file! Even folders with the Backup prefix will be entered, since it was declared "Backup*", meaning any folder starting with Backup…
-
2
votes1
answer77
viewsA: Block TFS File View
At TFS (Team Foundation Server), now known as Azure Devops Server since 2019, we have two types of code repositories: Git, currently recommended as standard by Microsoft, and TFVC (Team Foundation…
-
1
votes1
answer40
viewsA: Problems with git synchronization
It is not possible to have a single remote if there are two separate repositories. Each remote is the remote address of the repositories. The Fork of a repository makes it possible to have control…
-
2
votes1
answer167
viewsA: Git - Pull/Push with different repositories
With this scenario you will have a problem, since the repositories that are in origin may have different commits. One configuration that could be attempted would be to have 3 Origins, or better 3…
-
1
votes1
answer213
viewsA: Git Bash runs NPM on Windows Prompt
Use the Ubuntu, or any other Linux distro, available in the Microsoft Store, rather than the Bash that comes with installing Git for Windows. With that you’ll have the real Bash running on Windows…
-
1
votes3
answers495
viewsA: Join two projects into one
There is no automatic way to do this, because the result only depends on what you want and a tool wouldn’t know how to make that choice. A merge is the return of a code change when you have a…
-
0
votes1
answer80
viewsA: Keep Fork Updated in git Hub
Yes, there is! Follow the steps below: Open in the browser the repository page that is your Fork Click the button compare A new page will open, Comparing Changes, and notice you have entered an…
-
2
votes1
answer141
viewsA: Milestones and Projects on Github
The concepts of issues and Projects are not competitors but collaborative. The concepts, according to Github’s help, are: Issue: Use it to track ideas, improvements, tasks or bugs. (source:…
githubanswered egomesbrandao 2,026 -
0
votes2
answers163
viewsA: Is there a way to "link" specific content from one repository to another?
Good practice for this problem of yours is to use a; package manager or package management. Package managers are best known to general users on systems GNU/Linux, by enabling the installation of…
-
-1
votes1
answer259
viewsQ: How to import a Git repository to Azure Repos?
Azure Repos is an Azure Devops service. You can import a Git repository from another Git Storage service into it?
azure-devopsasked egomesbrandao 2,026 -
6
votes2
answers10525
viewsA: Difference between "git add --all", "git add ." and "git add -u"
The commands git add --all and git add ., may look the same but do very different actions: git add --all: adds to staging files from the repository root through all subdirectories, and here’s the…
gitanswered egomesbrandao 2,026 -
0
votes1
answer58
viewsA: Replicate changes from one repository to another
Using componentization is a good practice for distributing common software/code across applications, but it is not ideal to do this in the repository itself. A component, which is a reusable set of…
-
0
votes2
answers22
viewsA: Capture "Save work item" event at TFS - Visual Studio 2015
Instead of storing activity-specific information in an Excel spreadsheet, why not store it in the Work Items themselves? You can customize them to add fields and even change the workflow. So just…
-
1
votes2
answers843
viewsA: How to activate version control in Visualcode?
VS Code uses the OS folder system, and for the Git integration to work, you need to open the folder that contains your code, using the folder with the Git repository as the root, i.e., the folder…
-
5
votes2
answers2079
viewsA: How to get back to a point before merging into Github
In the local repository: git reset --hard HEAD^1 The reset command eliminates commits in two ways. Using -hard commit is definitely eliminated. To delete a commit you need to hash it, but in this…
-
1
votes3
answers1114
viewsA: how to commit a cloned repository?
If the exact sequence described was made, there is an error in doing: $ git clone 'repositorio' $ git init The first command already creates the repository and leaves it ready for use, the second…
-
3
votes1
answer115
viewsA: Clone hosting folder for bitbucket
The simplest way to transfer a repository from one host to the other is to: Clone the repository you want to move on your machine Create an empty repository on the other host, in the case of…
-
1
votes2
answers75
viewsA: Sonar: Validate changes from a given date
Sonar will run on top of the build, not in all of its code history, but you need a historical basis to analyze whether the code is improving or not. Sonar evaluates trend, so the analysis takes…
-
1
votes2
answers53
viewsA: Programming in pairs remotely
Microsoft recently announced a real-time collaboration tool: Visual Studio Live Share. What’s interesting about her: Can be used in Visual Studio or Code Use the Tooling of the machine that shares…
-
1
votes1
answer2688
viewsA: How do I identify existing repositories on my github?
Execute the command: git remote -v The relation is the URL’s to which it is possible to push. There must be at least one and by default it is named Origin. See if the URL matches the one sending the…
githubanswered egomesbrandao 2,026 -
5
votes3
answers10963
viewsA: Configure git to existing project folder
Unable to clone a Git repository to a folder that is not empty, this is not allowed. If any development has been done outside the repository, do the following: Clone the repository Create a new Rach…
gitanswered egomesbrandao 2,026 -
2
votes2
answers198
viewsA: Commit Reversal
One of the branch strategies is Feature branch, where you develop each Feature into a specific branch and then merge them into an integrator branch. The integration branch is what you send to the…
gitanswered egomesbrandao 2,026 -
2
votes1
answer86
viewsA: How to add Resece in Visual Studio
These references are the corporate frameworks or libraries that companies create and leaving them on developers' machines on fixed paths is the worst way to deal with them. Component management For…
-
2
votes2
answers1498
viewsA: How to delete all untracked files at once in git?
When I want to return the repository to the same state after a clone, for example, it is not enough not to have any file to be "commited", since it is possible to have files that are being ignored…
gitanswered egomesbrandao 2,026 -
1
votes1
answer232
viewsA: Does Contact Page work on Github Pages?
The purpose of Github Pages is to serve as a repository for documentation of code hosted on Github, using markdown files, which are transformed into static files. The idea is not to have a space for…
-
1
votes2
answers377
viewsA: GIT: 2-verse project on different clients and main branch
This is the kind of problem that a code versioner will not help you solve, what it helps is in parallelizing a software development work, but the goal will always be the branches go back to the…
-
4
votes2
answers2516
viewsA: What’s the difference between Team Foundation Service and Git?
TFS, Team Foundation Server, not Service, is an Application Lifecycle Management platform. Platform because its architecture is distributed, so in the simplest configuration it is possible to have a…
-
1
votes2
answers2703
viewsA: Inside Visual Studio 2015 how to reverse/undo a commit in Git?
If the code is already in the VSTS repository, you will need: Reverse the commit locally Do push -force It is not possible to reverse commit to a repository directly on VSTS, so the two steps. Which…
-
1
votes1
answer63
viewsA: How to generate Code Churn in Visual Studio Team Services (VSTS)?
Currently it is not possible, because VSTS does not have a database of Analysis available, for you to mount this type of query, unlike TFS.
-
6
votes5
answers19389
viewsA: Differences and advantages between Github and Gitlab
Github and Gitlab, despite their name, are different services. Github It’s basically, so far, a Git repository storage service, with some Features like: pull request (is not a Git native Feature),…
-
1
votes3
answers621
viewsA: How to clone the repository and all the arms of the remote?
Another way to execute would be by using the command git ls-remote This command lists the references of the remote repository, for example: git ls-remote --heads origin The return will be the list…
gitanswered egomesbrandao 2,026 -
2
votes1
answer656
viewsA: How to structure multiple projects in Git
Yes, the repository would be the equivalent of its first level No! In Git you have access to the entire repository, you can’t just download a folder. I see no reason for you to divide projects into…
-
1
votes1
answer412
viewsA: Deploy using GIT on my server
Jorge, What you’re doing is automating your deploy process, or Automation pipeline; but Git is not the right tool for it. I mean, it is one of the tools that are part of the process, but it is not…
-
0
votes2
answers53
viewsA: Programming in pairs remotely
I know two: Screenhero, which is a screen sharing solution, but via peer-to-peer insert link description here, this is a solution more similar to the aforementioned, however, it works in the cloud.…