Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-with-stata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rémi Le Gall
git-with-stata
Commits
29544d07
Unverified
Commit
29544d07
authored
6 years ago
by
Maria Paula Caldas
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace shell command
parent
fab4b213
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+11
-12
11 additions, 12 deletions
README.md
with
11 additions
and
12 deletions
README.md
+
11
−
12
View file @
29544d07
...
...
@@ -7,7 +7,7 @@ more information on this command checkout the help documentation.
help shell
```
Basically, you can run any Git command from Stata by
add
ing
`shell`
before it.
Basically, you can run any Git command from Stata by
typ
ing
`shell`
or
`!`
before it.
For example, to initialise a Git repository in the current working directory you
would have to run:
...
...
@@ -33,7 +33,6 @@ You can then go on to create a `.gitignore`, stage files and commit changes.
-
No automatic text complition with the
`Tab`
key, as you would in Git bash.
-
No syntax highlighting.
-
You have to type an extra word (although granted, you could create a program).
## Here are the steps I took to create this little example
...
...
@@ -42,29 +41,29 @@ You can then go on to create a `.gitignore`, stage files and commit changes.
2.
Initialise Git repository.
```
shell
git init .
!
git init .
```
3.
Stage
`README.md`
and
`.stpr`
file and commit.
```
shell
git add README.md git-with-stata.stpr
shell
git commit -m "Initial commit :hatching_chick:"
!
git add README.md git-with-stata.stpr
!
git commit -m "Initial commit :hatching_chick:"
```
4.
Create little do file and run.
5.
Stage do file and figure and commit.
```
shell
git add scatter*
shell
git commit -m "Add a little example script and figure"
!
git add scatter*
!
git commit -m "Add a little example script and figure"
```
6.
Go to GitHub, create a repo with the same name, without initialising a README.
Then locally add origin and push.
```
shell
git remote add origin https://github.com/mpaulacaldas/git-with-stata.git
shell
git push --set-upstream origin master
!
git remote add origin https://github.com/mpaulacaldas/git-with-stata.git
!
git push --set-upstream origin master
```
7.
Update
`README.md`
, stage, commit and push.
```
shell
git add README.md
shell
git commit -m "Update README"
shell
git push
!
git add README.md
!
git commit -m "Update README"
!
git push
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment