Git er et værktøj i udvikler værktøjskassen på lige linie med IDE og compilers.
Det er noget man skal sætte sig ind i og blive god til.
-- Fetch and update master branch | |
$ git fetch | |
$ git checkout master | |
$ git pull | |
or | |
$ git checkout -B master origin/master | |
-- Create branch and checkout (usually from from develop or master) | |
git checkout -b FOO-XXX_SomeMessage |
/** | |
* Garage port automation with timer | |
* | |
* Copyright 2020 Philip Hoppe | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
$GitRoot = "c:\Development" | |
Write-Host "Hello master." -ForegroundColor Magenta | |
function cd-apex { set-location "$GitRoot\Schultz.Apex" } | |
function cd-apexsearch { set-location "$GitRoot\Schultz.Apex\src\fasit-search\Fasit.Search.FrontendService\ClientApp" } | |
function cd-apexui { set-location "$GitRoot\Schultz.Apex\src\fasit-ui\shared-components" } | |
function cd-fasit { set-location "$GitRoot\Schultz.Fasit" } | |
function cd-fasit-jobcenter { set-location "$GitRoot\Schultz.Apex\src\clients\jobcenter-desktop\jobcenter-desktop-frontend" } |
param( | |
[Parameter(Mandatory=$true)] | |
[string]$solutionDirectory | |
) | |
Set-StrictMode -Version latest | |
$ErrorActionPreference = "Stop" | |
function Load-File ([string]$FilePath){ | |
Write-Verbose "Reading content of $FilePath" |
<# | |
.SYNOPSIS | |
Syncronize source folder to target folder | |
.DESCRIPTION | |
Check source folder against target folder, and updates files and folders in target. | |
.PARAMETER SourceFolder | |
The source folder for the syncronization. | |
.PARAMETER TargetFolder | |
The target folder for the syncronization. | |
.PARAMETER ExcludeName |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml.Serialization; | |
using NUnit.Framework; | |
namespace UnitTests | |
{ |
using System; | |
using System.Collections.Concurrent; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Threading.Tasks; | |
using log4net; | |
namespace MyNamespace | |
{ | |
/// <summary> |
# Converter use https://code.google.com/p/excellibrary/ to read cells. | |
# Place .DLL in same folder as this script. | |
param ( | |
[parameter(Mandatory=$false)] | |
[alias("source")] | |
[alias("src")] | |
[string]$ExcelFileName, | |
[parameter(Mandatory=$false)] | |
[alias("destination")] |
USE TrioStaging | |
GO | |
DECLARE @HHTBatchQueueId INT = 576601; | |
SELECT * | |
FROM [HHTBatchQueue] | |
WHERE HHTBatchQueueId = @HHTBatchQueueId; | |
SELECT * |